Trait opencv::prelude::SimpleWB

source ·
pub trait SimpleWB: SimpleWBConst + WhiteBalancer {
    // Required method
    fn as_raw_mut_SimpleWB(&mut self) -> *mut c_void;

    // Provided methods
    fn set_input_min(&mut self, val: f32) -> Result<()> { ... }
    fn set_input_max(&mut self, val: f32) -> Result<()> { ... }
    fn set_output_min(&mut self, val: f32) -> Result<()> { ... }
    fn set_output_max(&mut self, val: f32) -> Result<()> { ... }
    fn set_p(&mut self, val: f32) -> Result<()> { ... }
}
Expand description

A simple white balance algorithm that works by independently stretching each of the input image channels to the specified range. For increased robustness it ignores the top and bottom inline formula of pixel values.

Required Methods§

Provided Methods§

source

fn set_input_min(&mut self, val: f32) -> Result<()>

Input image range minimum value

See also

setInputMin getInputMin

source

fn set_input_max(&mut self, val: f32) -> Result<()>

Input image range maximum value

See also

setInputMax getInputMax

source

fn set_output_min(&mut self, val: f32) -> Result<()>

Output image range minimum value

See also

setOutputMin getOutputMin

source

fn set_output_max(&mut self, val: f32) -> Result<()>

Output image range maximum value

See also

setOutputMax getOutputMax

source

fn set_p(&mut self, val: f32) -> Result<()>

Percent of top/bottom values to ignore

See also

setP getP

Implementors§