Class implementing Fourier transform profilometry (FTP) , phase-shifting profilometry (PSP) and Fourier-assisted phase-shifting profilometry (FAPS) based on [64].
More...
#include <opencv2/structured_light/sinusoidalpattern.hpp>
|
| virtual void | computeDataModulationTerm (InputArrayOfArrays patternImages, OutputArray dataModulationTerm, InputArray shadowMask)=0 |
| | compute the data modulation term.
|
| virtual void | computePhaseMap (InputArrayOfArrays patternImages, OutputArray wrappedPhaseMap, OutputArray shadowMask=noArray(), InputArray fundamental=noArray())=0 |
| | Compute a wrapped phase map from sinusoidal patterns.
|
| virtual void | findProCamMatches (InputArray projUnwrappedPhaseMap, InputArray camUnwrappedPhaseMap, OutputArrayOfArrays matches)=0 |
| | Find correspondences between the two devices thanks to unwrapped phase maps.
|
| virtual void | unwrapPhaseMap (InputArray wrappedPhaseMap, OutputArray unwrappedPhaseMap, cv::Size camSize, InputArray shadowMask=noArray())=0 |
| | Unwrap the wrapped phase map to remove phase ambiguities.
|
| virtual bool | decode (const std::vector< std::vector< Mat > > &patternImages, OutputArray disparityMap, InputArrayOfArrays blackImages=noArray(), InputArrayOfArrays whiteImages=noArray(), int flags=DECODE_3D_UNDERWORLD) const =0 |
| | Decodes the structured light pattern, generating a disparity map.
|
| virtual bool | generate (OutputArrayOfArrays patternImages)=0 |
| | Generates the structured light pattern to project.
|
| | Algorithm () |
| virtual | ~Algorithm () |
| virtual void | clear () |
| | Clears the algorithm state.
|
| virtual bool | empty () const |
| | Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read.
|
| virtual String | getDefaultName () const |
| virtual void | read (const FileNode &fn) |
| | Reads algorithm parameters from a file storage.
|
| virtual void | save (const String &filename) const |
| void | write (const Ptr< FileStorage > &fs, const String &name=String()) const |
| virtual void | write (FileStorage &fs) const |
| | Stores algorithm parameters in a file storage.
|
| void | write (FileStorage &fs, const String &name) const |
Class implementing Fourier transform profilometry (FTP) , phase-shifting profilometry (PSP) and Fourier-assisted phase-shifting profilometry (FAPS) based on [64].
This class generates sinusoidal patterns that can be used with FTP, PSP and FAPS.
◆ computeDataModulationTerm()
| Python: |
|---|
| cv.structured_light.SinusoidalPattern.computeDataModulationTerm( | patternImages, shadowMask[, dataModulationTerm] | ) -> | dataModulationTerm |
compute the data modulation term.
- Parameters
-
| patternImages | captured images with projected patterns. |
| dataModulationTerm | Mat where the data modulation term is saved. |
| shadowMask | Mask used to discard shadow regions. |
◆ computePhaseMap()
| Python: |
|---|
| cv.structured_light.SinusoidalPattern.computePhaseMap( | patternImages[, wrappedPhaseMap[, shadowMask[, fundamental]]] | ) -> | wrappedPhaseMap, shadowMask |
Compute a wrapped phase map from sinusoidal patterns.
- 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. |
◆ create()
| Python: |
|---|
| cv.structured_light.SinusoidalPattern.create( | [, parameters] | ) -> | retval |
| cv.structured_light.SinusoidalPattern_create( | [, parameters] | ) -> | retval |
◆ findProCamMatches()
| Python: |
|---|
| cv.structured_light.SinusoidalPattern.findProCamMatches( | projUnwrappedPhaseMap, camUnwrappedPhaseMap[, matches] | ) -> | matches |
Find correspondences between the two devices thanks to unwrapped phase maps.
- Parameters
-
| projUnwrappedPhaseMap | Projector's unwrapped phase map. |
| camUnwrappedPhaseMap | Camera's unwrapped phase map. |
| matches | Images used to display correspondences map. |
◆ unwrapPhaseMap()
| Python: |
|---|
| cv.structured_light.SinusoidalPattern.unwrapPhaseMap( | wrappedPhaseMap, camSize[, unwrappedPhaseMap[, shadowMask]] | ) -> | unwrappedPhaseMap |
Unwrap the wrapped phase map to remove phase ambiguities.
- 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. |
The documentation for this class was generated from the following file: