Class cv::structured_light::StructuredLightPattern#
Abstract base class for generating and decoding structured light patterns.
Collaboration diagram for cv::structured_light::StructuredLightPattern:
Public Member Functions#
Public Member Functions inherited from cv::Algorithm
Return |
Name |
Description |
|---|---|---|
|
Clears the algorithm state. |
|
|
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read. |
|
|
Reads algorithm parameters from a file storage. |
|
|
||
|
|
|
|
Stores algorithm parameters in a file storage. |
|
|
Static Public Member Functions#
Static Public Member Functions inherited from cv::Algorithm
Return |
Name |
Description |
|---|---|---|
|
|
Loads algorithm from the file. |
|
|
Loads algorithm from a String. |
|
Reads algorithm from the file node. |
Additional Inherited Members#
Protected Member Functions inherited from cv::Algorithm
Return |
Name |
Description |
|---|---|---|
|
Detailed Description#
Abstract base class for generating and decoding structured light patterns.
Member Function Documentation#
decode()#
bool cv::structured_light::StructuredLightPattern::decode(
const std::vector< std::vector< Mat > > & patternImages,
OutputArray disparityMap,
InputArrayOfArrays blackImages = noArray(),
InputArrayOfArrays whiteImages = noArray(),
int flags = DECODE_3D_UNDERWORLD )
Decodes the structured light pattern, generating a disparity map.
Note
All the images must be at the same resolution.
Parameters
patternImages— The acquired pattern images to decode (vector<vector>), 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.
Here is the call graph for this function:
generate()#
bool cv::structured_light::StructuredLightPattern::generate(OutputArrayOfArrays patternImages)
Generates the structured light pattern to project.
Parameters
patternImages— The generated pattern: a vector, in which each image is a CV_8U Mat at projector’s resolution.
Source file#
The documentation for this class was generated from the following file:
opencv2/structured_light/structured_light.hpp