Trait opencv::prelude::GrayCodePattern
source · 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§
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.
Implementations§
source§impl dyn GrayCodePattern + '_
impl dyn GrayCodePattern + '_
sourcepub fn create(
parameters: &GrayCodePattern_Params
) -> Result<Ptr<dyn GrayCodePattern>>
pub fn create(
parameters: &GrayCodePattern_Params
) -> Result<Ptr<dyn GrayCodePattern>>
Constructor
Parameters
- parameters: GrayCodePattern parameters GrayCodePattern::Params: the width and the height of the projector.
C++ default parameters
- parameters: GrayCodePattern::Params()