pub trait StructuredLightPatternConst: AlgorithmTraitConst {
    // Required method
    fn as_raw_StructuredLightPattern(&self) -> *const c_void;

    // Provided method
    fn decode(
        &self,
        pattern_images: &Vector<Vector<Mat>>,
        disparity_map: &mut dyn ToOutputArray,
        black_images: &dyn ToInputArray,
        white_images: &dyn ToInputArray,
        flags: i32
    ) -> Result<bool> { ... }
}
Expand description

Required Methods§

Provided Methods§

source

fn decode( &self, pattern_images: &Vector<Vector<Mat>>, 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

Implementors§