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
Mutable methods for crate::structured_light::GrayCodePattern
Required Methods§
fn as_raw_mut_GrayCodePattern(&mut self) -> *mut c_void
Provided Methods§
sourcefn set_white_threshold(&mut self, value: size_t) -> Result<()>
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.
sourcefn set_black_threshold(&mut self, value: size_t) -> Result<()>
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.
Object Safety§
This trait is not object safe.