[][src]Trait opencv::xphoto::SimpleWB

pub trait SimpleWB: WhiteBalancer {
    fn as_raw_SimpleWB(&self) -> *mut c_void;

    fn get_input_min(&self) -> Result<f32> { ... }
fn set_input_min(&mut self, val: f32) -> Result<()> { ... }
fn get_input_max(&self) -> Result<f32> { ... }
fn set_input_max(&mut self, val: f32) -> Result<()> { ... }
fn get_output_min(&self) -> Result<f32> { ... }
fn set_output_min(&mut self, val: f32) -> Result<()> { ... }
fn get_output_max(&self) -> Result<f32> { ... }
fn set_output_max(&mut self, val: f32) -> Result<()> { ... }
fn get_p(&self) -> Result<f32> { ... }
fn set_p(&mut self, val: f32) -> Result<()> { ... } }

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

Loading content...

Provided methods

fn get_input_min(&self) -> Result<f32>

Input image range minimum value @see setInputMin

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

@copybrief getInputMin @see getInputMin

fn get_input_max(&self) -> Result<f32>

Input image range maximum value @see setInputMax

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

@copybrief getInputMax @see getInputMax

fn get_output_min(&self) -> Result<f32>

Output image range minimum value @see setOutputMin

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

@copybrief getOutputMin @see getOutputMin

fn get_output_max(&self) -> Result<f32>

Output image range maximum value @see setOutputMax

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

@copybrief getOutputMax @see getOutputMax

fn get_p(&self) -> Result<f32>

Percent of top/bottom values to ignore @see setP

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

@copybrief getP @see getP

Loading content...

Implementors

Loading content...