SinusoidalPattern
Objective-C
@interface SinusoidalPattern : StructuredLightPattern
Swift
class SinusoidalPattern : StructuredLightPattern
Class implementing Fourier transform profilometry (FTP) , phase-shifting profilometry (PSP) and Fourier-assisted phase-shifting profilometry (FAPS) based on CITE: faps.
This class generates sinusoidal patterns that can be used with FTP, PSP and FAPS.
Member of Structured_light
-
Constructor.
Declaration
Objective-C
+ (nonnull SinusoidalPattern *)create: (nonnull SinusoidalPatternParams *)parameters;
Swift
class func create(parameters: SinusoidalPatternParams) -> SinusoidalPattern
Parameters
parameters
SinusoidalPattern parameters SinusoidalPattern::Params: width, height of the projector and patterns parameters.
-
Constructor.
Declaration
Objective-C
+ (nonnull SinusoidalPattern *)create;
Swift
class func create() -> SinusoidalPattern
-
compute the data modulation term.
Declaration
Parameters
patternImages
captured images with projected patterns.
dataModulationTerm
Mat where the data modulation term is saved.
shadowMask
Mask used to discard shadow regions.
-
Compute a wrapped phase map from sinusoidal patterns.
Declaration
Parameters
patternImages
Input data to compute the wrapped phase map.
wrappedPhaseMap
Wrapped phase map obtained through one of the three methods.
shadowMask
Mask used to discard shadow regions.
fundamental
Fundamental matrix used to compute epipolar lines and ease the matching step.
-
Compute a wrapped phase map from sinusoidal patterns.
Declaration
Parameters
patternImages
Input data to compute the wrapped phase map.
wrappedPhaseMap
Wrapped phase map obtained through one of the three methods.
shadowMask
Mask used to discard shadow regions.
-
Compute a wrapped phase map from sinusoidal patterns.
Declaration
Parameters
patternImages
Input data to compute the wrapped phase map.
wrappedPhaseMap
Wrapped phase map obtained through one of the three methods.
-
Find correspondences between the two devices thanks to unwrapped phase maps.
Declaration
Parameters
projUnwrappedPhaseMap
Projector’s unwrapped phase map.
camUnwrappedPhaseMap
Camera’s unwrapped phase map.
matches
Images used to display correspondences map.
-
Unwrap the wrapped phase map to remove phase ambiguities.
Declaration
Parameters
wrappedPhaseMap
The wrapped phase map computed from the pattern.
unwrappedPhaseMap
The unwrapped phase map used to find correspondences between the two devices.
camSize
Resolution of the camera.
shadowMask
Mask used to discard shadow regions.
-
Unwrap the wrapped phase map to remove phase ambiguities.
Declaration
Parameters
wrappedPhaseMap
The wrapped phase map computed from the pattern.
unwrappedPhaseMap
The unwrapped phase map used to find correspondences between the two devices.
camSize
Resolution of the camera.