OpenCV for Unity 2.6.4
Enox Software / Please refer to OpenCV official document ( http://docs.opencv.org/4.10.0/index.html ) for the details of the argument of the method.
Loading...
Searching...
No Matches
OpenCVForUnity.Structured_lightModule.SinusoidalPattern Class Reference

Class implementing Fourier transform profilometry (FTP) , phase-shifting profilometry (PSP) and Fourier-assisted phase-shifting profilometry (FAPS) based on [faps]. More...

Public Member Functions

void computeDataModulationTerm (List< Mat > patternImages, Mat dataModulationTerm, Mat shadowMask)
 compute the data modulation term.
 
void computePhaseMap (List< Mat > patternImages, Mat wrappedPhaseMap)
 Compute a wrapped phase map from sinusoidal patterns.
 
void computePhaseMap (List< Mat > patternImages, Mat wrappedPhaseMap, Mat shadowMask)
 Compute a wrapped phase map from sinusoidal patterns.
 
void computePhaseMap (List< Mat > patternImages, Mat wrappedPhaseMap, Mat shadowMask, Mat fundamental)
 Compute a wrapped phase map from sinusoidal patterns.
 
void findProCamMatches (Mat projUnwrappedPhaseMap, Mat camUnwrappedPhaseMap, List< Mat > matches)
 Find correspondences between the two devices thanks to unwrapped phase maps.
 
void unwrapPhaseMap (Mat wrappedPhaseMap, Mat unwrappedPhaseMap, in Vec2d camSize)
 Unwrap the wrapped phase map to remove phase ambiguities.
 
void unwrapPhaseMap (Mat wrappedPhaseMap, Mat unwrappedPhaseMap, in Vec2d camSize, Mat shadowMask)
 Unwrap the wrapped phase map to remove phase ambiguities.
 
void unwrapPhaseMap (Mat wrappedPhaseMap, Mat unwrappedPhaseMap, in(double width, double height) camSize)
 Unwrap the wrapped phase map to remove phase ambiguities.
 
void unwrapPhaseMap (Mat wrappedPhaseMap, Mat unwrappedPhaseMap, in(double width, double height) camSize, Mat shadowMask)
 Unwrap the wrapped phase map to remove phase ambiguities.
 
void unwrapPhaseMap (Mat wrappedPhaseMap, Mat unwrappedPhaseMap, Size camSize)
 Unwrap the wrapped phase map to remove phase ambiguities.
 
void unwrapPhaseMap (Mat wrappedPhaseMap, Mat unwrappedPhaseMap, Size camSize, Mat shadowMask)
 Unwrap the wrapped phase map to remove phase ambiguities.
 
- Public Member Functions inherited from OpenCVForUnity.Structured_lightModule.StructuredLightPattern
bool generate (List< Mat > patternImages)
 Generates the structured light pattern to project.
 
- Public Member Functions inherited from OpenCVForUnity.CoreModule.Algorithm
virtual void clear ()
 Clears the algorithm state.
 
virtual bool empty ()
 Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read.
 
virtual string getDefaultName ()
 
IntPtr getNativeObjAddr ()
 
void save (string filename)
 
- Public Member Functions inherited from OpenCVForUnity.DisposableObject
void Dispose ()
 
void ThrowIfDisposed ()
 

Static Public Member Functions

static new SinusoidalPattern __fromPtr__ (IntPtr addr)
 
static SinusoidalPattern create ()
 Constructor.
 
static SinusoidalPattern create (SinusoidalPattern_Params parameters)
 Constructor.
 
- Static Public Member Functions inherited from OpenCVForUnity.Structured_lightModule.StructuredLightPattern
static new StructuredLightPattern __fromPtr__ (IntPtr addr)
 
- Static Public Member Functions inherited from OpenCVForUnity.CoreModule.Algorithm
static Algorithm __fromPtr__ (IntPtr addr)
 
- Static Public Member Functions inherited from OpenCVForUnity.DisposableObject
static IntPtr ThrowIfNullIntPtr (IntPtr ptr)
 

Protected Member Functions

override void Dispose (bool disposing)
 
- Protected Member Functions inherited from OpenCVForUnity.Structured_lightModule.StructuredLightPattern
override void Dispose (bool disposing)
 
- Protected Member Functions inherited from OpenCVForUnity.CoreModule.Algorithm
- Protected Member Functions inherited from OpenCVForUnity.DisposableOpenCVObject
 DisposableOpenCVObject ()
 
 DisposableOpenCVObject (bool isEnabledDispose)
 
 DisposableOpenCVObject (IntPtr ptr)
 
 DisposableOpenCVObject (IntPtr ptr, bool isEnabledDispose)
 
- Protected Member Functions inherited from OpenCVForUnity.DisposableObject
 DisposableObject ()
 
 DisposableObject (bool isEnabledDispose)
 

Additional Inherited Members

- Package Functions inherited from OpenCVForUnity.Structured_lightModule.StructuredLightPattern
- Package Functions inherited from OpenCVForUnity.CoreModule.Algorithm
- Package Attributes inherited from OpenCVForUnity.DisposableOpenCVObject
- Properties inherited from OpenCVForUnity.DisposableObject
bool IsDisposed [get, protected set]
 
bool IsEnabledDispose [get, set]
 

Detailed Description

Class implementing Fourier transform profilometry (FTP) , phase-shifting profilometry (PSP) and Fourier-assisted phase-shifting profilometry (FAPS) based on [faps].

This class generates sinusoidal patterns that can be used with FTP, PSP and FAPS.

Member Function Documentation

◆ __fromPtr__()

static new SinusoidalPattern OpenCVForUnity.Structured_lightModule.SinusoidalPattern.__fromPtr__ ( IntPtr addr)
static

◆ computeDataModulationTerm()

void OpenCVForUnity.Structured_lightModule.SinusoidalPattern.computeDataModulationTerm ( List< Mat > patternImages,
Mat dataModulationTerm,
Mat shadowMask )

compute the data modulation term.

Parameters
patternImagescaptured images with projected patterns.
dataModulationTermMat where the data modulation term is saved.
shadowMaskMask used to discard shadow regions.

◆ computePhaseMap() [1/3]

void OpenCVForUnity.Structured_lightModule.SinusoidalPattern.computePhaseMap ( List< Mat > patternImages,
Mat wrappedPhaseMap )

Compute a wrapped phase map from sinusoidal patterns.

Parameters
patternImagesInput data to compute the wrapped phase map.
wrappedPhaseMapWrapped phase map obtained through one of the three methods.
shadowMaskMask used to discard shadow regions.
fundamentalFundamental matrix used to compute epipolar lines and ease the matching step.

◆ computePhaseMap() [2/3]

void OpenCVForUnity.Structured_lightModule.SinusoidalPattern.computePhaseMap ( List< Mat > patternImages,
Mat wrappedPhaseMap,
Mat shadowMask )

Compute a wrapped phase map from sinusoidal patterns.

Parameters
patternImagesInput data to compute the wrapped phase map.
wrappedPhaseMapWrapped phase map obtained through one of the three methods.
shadowMaskMask used to discard shadow regions.
fundamentalFundamental matrix used to compute epipolar lines and ease the matching step.

◆ computePhaseMap() [3/3]

void OpenCVForUnity.Structured_lightModule.SinusoidalPattern.computePhaseMap ( List< Mat > patternImages,
Mat wrappedPhaseMap,
Mat shadowMask,
Mat fundamental )

Compute a wrapped phase map from sinusoidal patterns.

Parameters
patternImagesInput data to compute the wrapped phase map.
wrappedPhaseMapWrapped phase map obtained through one of the three methods.
shadowMaskMask used to discard shadow regions.
fundamentalFundamental matrix used to compute epipolar lines and ease the matching step.

◆ create() [1/2]

static SinusoidalPattern OpenCVForUnity.Structured_lightModule.SinusoidalPattern.create ( )
static

Constructor.

Parameters
parametersSinusoidalPattern parameters SinusoidalPattern::Params: width, height of the projector and patterns parameters.

◆ create() [2/2]

static SinusoidalPattern OpenCVForUnity.Structured_lightModule.SinusoidalPattern.create ( SinusoidalPattern_Params parameters)
static

Constructor.

Parameters
parametersSinusoidalPattern parameters SinusoidalPattern::Params: width, height of the projector and patterns parameters.

◆ Dispose()

override void OpenCVForUnity.Structured_lightModule.SinusoidalPattern.Dispose ( bool disposing)
protectedvirtual

◆ findProCamMatches()

void OpenCVForUnity.Structured_lightModule.SinusoidalPattern.findProCamMatches ( Mat projUnwrappedPhaseMap,
Mat camUnwrappedPhaseMap,
List< Mat > matches )

Find correspondences between the two devices thanks to unwrapped phase maps.

Parameters
projUnwrappedPhaseMapProjector's unwrapped phase map.
camUnwrappedPhaseMapCamera's unwrapped phase map.
matchesImages used to display correspondences map.

◆ unwrapPhaseMap() [1/6]

void OpenCVForUnity.Structured_lightModule.SinusoidalPattern.unwrapPhaseMap ( Mat wrappedPhaseMap,
Mat unwrappedPhaseMap,
in Vec2d camSize )

Unwrap the wrapped phase map to remove phase ambiguities.

Parameters
wrappedPhaseMapThe wrapped phase map computed from the pattern.
unwrappedPhaseMapThe unwrapped phase map used to find correspondences between the two devices.
camSizeResolution of the camera.
shadowMaskMask used to discard shadow regions.

◆ unwrapPhaseMap() [2/6]

void OpenCVForUnity.Structured_lightModule.SinusoidalPattern.unwrapPhaseMap ( Mat wrappedPhaseMap,
Mat unwrappedPhaseMap,
in Vec2d camSize,
Mat shadowMask )

Unwrap the wrapped phase map to remove phase ambiguities.

Parameters
wrappedPhaseMapThe wrapped phase map computed from the pattern.
unwrappedPhaseMapThe unwrapped phase map used to find correspondences between the two devices.
camSizeResolution of the camera.
shadowMaskMask used to discard shadow regions.

◆ unwrapPhaseMap() [3/6]

void OpenCVForUnity.Structured_lightModule.SinusoidalPattern.unwrapPhaseMap ( Mat wrappedPhaseMap,
Mat unwrappedPhaseMap,
in(double width, double height) camSize )

Unwrap the wrapped phase map to remove phase ambiguities.

Parameters
wrappedPhaseMapThe wrapped phase map computed from the pattern.
unwrappedPhaseMapThe unwrapped phase map used to find correspondences between the two devices.
camSizeResolution of the camera.
shadowMaskMask used to discard shadow regions.

◆ unwrapPhaseMap() [4/6]

void OpenCVForUnity.Structured_lightModule.SinusoidalPattern.unwrapPhaseMap ( Mat wrappedPhaseMap,
Mat unwrappedPhaseMap,
in(double width, double height) camSize,
Mat shadowMask )

Unwrap the wrapped phase map to remove phase ambiguities.

Parameters
wrappedPhaseMapThe wrapped phase map computed from the pattern.
unwrappedPhaseMapThe unwrapped phase map used to find correspondences between the two devices.
camSizeResolution of the camera.
shadowMaskMask used to discard shadow regions.

◆ unwrapPhaseMap() [5/6]

void OpenCVForUnity.Structured_lightModule.SinusoidalPattern.unwrapPhaseMap ( Mat wrappedPhaseMap,
Mat unwrappedPhaseMap,
Size camSize )

Unwrap the wrapped phase map to remove phase ambiguities.

Parameters
wrappedPhaseMapThe wrapped phase map computed from the pattern.
unwrappedPhaseMapThe unwrapped phase map used to find correspondences between the two devices.
camSizeResolution of the camera.
shadowMaskMask used to discard shadow regions.

◆ unwrapPhaseMap() [6/6]

void OpenCVForUnity.Structured_lightModule.SinusoidalPattern.unwrapPhaseMap ( Mat wrappedPhaseMap,
Mat unwrappedPhaseMap,
Size camSize,
Mat shadowMask )

Unwrap the wrapped phase map to remove phase ambiguities.

Parameters
wrappedPhaseMapThe wrapped phase map computed from the pattern.
unwrappedPhaseMapThe unwrapped phase map used to find correspondences between the two devices.
camSizeResolution of the camera.
shadowMaskMask used to discard shadow regions.

The documentation for this class was generated from the following files: