Abstract base class for generating and decoding structured light patterns.
More...
#include <opencv2/structured_light/structured_light.hpp>
Abstract base class for generating and decoding structured light patterns.
◆ decode()
Python: |
---|
| cv.structured_light.StructuredLightPattern.decode( | patternImages[, disparityMap[, blackImages[, whiteImages[, flags]]]] | ) -> | retval, disparityMap |
Decodes the structured light pattern, generating a disparity map.
- Parameters
-
patternImages | The acquired pattern images to decode (vector<vector<Mat>>), loaded as grayscale and previously rectified. |
disparityMap | The decoding result: a CV_64F Mat at image resolution, storing the computed disparity map. |
blackImages | The all-black images needed for shadowMasks computation. |
whiteImages | The all-white images needed for shadowMasks computation. |
flags | Flags setting decoding algorithms. Default: DECODE_3D_UNDERWORLD. |
- Note
- All the images must be at the same resolution.
◆ generate()
virtual bool cv::structured_light::StructuredLightPattern::generate |
( |
OutputArrayOfArrays | patternImages | ) |
|
|
pure virtual |
Python: |
---|
| cv.structured_light.StructuredLightPattern.generate( | [, patternImages] | ) -> | retval, patternImages |
Generates the structured light pattern to project.
- Parameters
-
patternImages | The generated pattern: a vector<Mat>, in which each image is a CV_8U Mat at projector's resolution. |
The documentation for this class was generated from the following file: