Table of Contents

Class StructuredLightInvoke

Namespace
Emgu.CV.StructuredLight
Assembly
Emgu.CV.dll

Provide interfaces to the Open CV StructuredLight functions

public static class StructuredLightInvoke
Inheritance
StructuredLightInvoke
Inherited Members

Methods

Decode(IStructuredLightPattern, VectorOfVectorOfMat, IOutputArray, IInputArrayOfArrays, IInputArrayOfArrays, DecodeFlag)

Decodes the structured light pattern, generating a disparity map.

public static bool Decode(this IStructuredLightPattern structuredLightPattern, VectorOfVectorOfMat patternImages, IOutputArray disparityMap, IInputArrayOfArrays blackImages = null, IInputArrayOfArrays whiteImages = null, DecodeFlag flags = DecodeFlag.Decode3dUnderworld)

Parameters

structuredLightPattern IStructuredLightPattern

The strucutred light pattern

patternImages VectorOfVectorOfMat

The acquired pattern images to decode VectorOfVectorOfMat), loaded as grayscale and previously rectified.

disparityMap IOutputArray

The decoding result: a CV_64F Mat at image resolution, storing the computed disparity map.

blackImages IInputArrayOfArrays

The all-black images needed for shadowMasks computation.

whiteImages IInputArrayOfArrays

The all-white images needed for shadowMasks computation.

flags DecodeFlag

Flags setting decoding algorithms.

Returns

bool

True if successful.

Generate(IStructuredLightPattern, IOutputArrayOfArrays)

Generates the structured light pattern to project.

public static bool Generate(this IStructuredLightPattern structuredLightPattern, IOutputArrayOfArrays patternImages)

Parameters

structuredLightPattern IStructuredLightPattern

The strucutred light pattern

patternImages IOutputArrayOfArrays

The generated pattern: a VectorOfMat, in which each image is a CV_8U Mat at projector's resolution.

Returns

bool

True if successful.