[−][src]Trait opencv::structured_light::StructuredLightPattern
Abstract base class for generating and decoding structured light patterns.
Required methods
fn as_raw_StructuredLightPattern(&self) -> *mut c_void
Provided methods
fn generate(&mut self, pattern_images: &mut dyn ToOutputArray) -> Result<bool>
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.
fn decode(
&self,
pattern_images: &VectorOfVectorOfMat,
disparity_map: &mut dyn ToOutputArray,
black_images: &dyn ToInputArray,
white_images: &dyn ToInputArray,
flags: i32
) -> Result<bool>
&self,
pattern_images: &VectorOfVectorOfMat,
disparity_map: &mut dyn ToOutputArray,
black_images: &dyn ToInputArray,
white_images: &dyn ToInputArray,
flags: i32
) -> Result<bool>
Decodes the structured light pattern, generating a disparity map
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.
Note: All the images must be at the same resolution.
C++ default parameters
- black_images: noArray()
- white_images: noArray()
- flags: DECODE_3D_UNDERWORLD