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

Algorithm()

~Algorithm()

void

clear()

Clears the algorithm state.

bool

empty()

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read.

String

getDefaultName()

void

read(const FileNode & fn)

Reads algorithm parameters from a file storage.

void

save(const String & filename)

void

write(
    const Ptr< FileStorage > & fs,
    const String & name = String() )

void

write(FileStorage & fs)

Stores algorithm parameters in a file storage.

void

write(
    FileStorage & fs,
    const String & name )

Static Public Member Functions#

Static Public Member Functions inherited from cv::Algorithm

Return

Name

Description

static Ptr< _Tp >

load(
    const String & filename,
    const String & objname = String() )

Loads algorithm from the file.

static Ptr< _Tp >

loadFromString(
    const String & strModel,
    const String & objname = String() )

Loads algorithm from a String.

static Ptr< _Tp >

read(const FileNode & fn)

Reads algorithm from the file node.

Additional Inherited Members#

Protected Member Functions inherited from cv::Algorithm

Return

Name

Description

void

writeFormat(FileStorage & fs)

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:

cv::structured_light::StructuredLightPattern::decode Node1 cv::structured_light ::StructuredLightPattern ::decode Node2 cv::noArray Node1->Node2

cv::structured_light::StructuredLightPattern::decode Node1 cv::structured_light ::StructuredLightPattern ::decode Node2 cv::noArray Node1->Node2

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: