pub trait GrayCodePattern: GrayCodePatternConst + StructuredLightPattern {
    fn as_raw_mut_GrayCodePattern(&mut self) -> *mut c_void;

    fn set_white_threshold(&mut self, value: size_t) -> Result<()> { ... }
    fn set_black_threshold(&mut self, value: size_t) -> Result<()> { ... }
}

Required Methods§

Provided Methods§

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.

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.

Implementations§

Constructor

Parameters
  • parameters: GrayCodePattern parameters GrayCodePattern::Params: the width and the height of the projector.
C++ default parameters
  • parameters: GrayCodePattern::Params()

Implementors§