opencv::mod_prelude

Trait GrayCodePatternTrait

Source
pub trait GrayCodePatternTrait: GrayCodePatternTraitConst + StructuredLightPatternTrait {
    // Required method
    fn as_raw_mut_GrayCodePattern(&mut self) -> *mut c_void;

    // Provided methods
    fn set_white_threshold(&mut self, value: size_t) -> Result<()> { ... }
    fn set_black_threshold(&mut self, value: size_t) -> Result<()> { ... }
}
Expand description

Required Methods§

Provided Methods§

Source

fn set_white_threshold(&mut self, value: size_t) -> Result<()>

Sets the value for white threshold, needed for decoding.

White threshold is a number between 0-255 that represents the minimum brightness difference required for valid pixels, between the graycode pattern and its inverse images; used in getProjPixel method.

§Parameters
  • value: The desired white threshold value.
Source

fn set_black_threshold(&mut self, value: size_t) -> Result<()>

Sets the value for black threshold, needed for decoding (shadowsmasks computation).

Black threshold is a number between 0-255 that represents the minimum brightness difference required for valid pixels, between the fully illuminated (white) and the not illuminated images (black); used in computeShadowMasks method.

§Parameters
  • value: The desired black threshold value.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§