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

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

Required Methods§

Provided Methods§

source

fn decode( &self, pattern_images: &Vector<Vector<Mat>>, disparity_map: &mut impl ToOutputArray, black_images: &impl ToInputArray, white_images: &impl 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
source

fn decode_def( &self, pattern_images: &Vector<Vector<Mat>>, disparity_map: &mut impl ToOutputArray ) -> 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.

§Note

This alternative version of StructuredLightPatternTraitConst::decode function uses the following default values for its arguments:

  • black_images: noArray()
  • white_images: noArray()
  • flags: DECODE_3D_UNDERWORLD

Object Safety§

This trait is not object safe.

Implementors§