[][src]Struct opencv::types::PtrOfRetina

pub struct PtrOfRetina { /* fields omitted */ }

Methods

impl PtrOfRetina[src]

pub fn as_raw_PtrOfRetina(&self) -> *mut c_void[src]

pub unsafe fn from_raw_ptr(ptr: *mut c_void) -> Self[src]

Trait Implementations

impl Algorithm for PtrOfRetina[src]

fn clear(&mut self) -> Result<()>[src]

Clears the algorithm state

fn empty(&self) -> Result<bool>[src]

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read

fn save(&self, filename: &str) -> Result<()>[src]

Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs). Read more

fn get_default_name(&self) -> Result<String>[src]

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string. Read more

impl Retina for PtrOfRetina[src]

fn get_input_size(&mut self) -> Result<Size>[src]

Retreive retina input buffer size ## Returns the retina input buffer size Read more

fn get_output_size(&mut self) -> Result<Size>[src]

Retreive retina output buffer size that can be different from the input if a spatial log transformation is applied ## Returns the retina output buffer size Read more

fn setup(
    &mut self,
    retina_parameter_file: &str,
    apply_default_setup_on_failure: bool
) -> Result<()>
[src]

Try to open an XML retina parameters file to adjust current retina instance setup Read more

fn setup_1(&mut self, new_parameters: &RetinaParameters) -> Result<()>[src]

Parameters * newParameters: a parameters structures updated with the new target configuration. Read more

fn get_parameters(&mut self) -> Result<RetinaParameters>[src]

Returns the current parameters setup Read more

fn print_setup(&mut self) -> Result<String>[src]

Outputs a string showing the used parameters setup ## Returns a string which contains formated parameters information Read more

fn write(&self, fs: &str) -> Result<()>[src]

Write xml/yml formated parameters information ## Parameters * fs: the filename of the xml file that will be open and writen with formatted parameters information Read more

fn setup_op_land_ipl_parvo_channel(
    &mut self,
    color_mode: bool,
    normalise_output: bool,
    photoreceptors_local_adaptation_sensitivity: f32,
    photoreceptors_temporal_constant: f32,
    photoreceptors_spatial_constant: f32,
    horizontal_cells_gain: f32,
    hcells_temporal_constant: f32,
    hcells_spatial_constant: f32,
    ganglion_cells_sensitivity: f32
) -> Result<()>
[src]

Setup the OPL and IPL parvo channels (see biologocal model) Read more

fn setup_ipl_magno_channel(
    &mut self,
    normalise_output: bool,
    parasol_cells_beta: f32,
    parasol_cells_tau: f32,
    parasol_cells_k: f32,
    amacrin_cells_temporal_cut_frequency: f32,
    v0_compression_parameter: f32,
    local_adaptintegration_tau: f32,
    local_adaptintegration_k: f32
) -> Result<()>
[src]

Set parameters values for the Inner Plexiform Layer (IPL) magnocellular channel Read more

fn run(&mut self, input_image: &Mat) -> Result<()>[src]

Method which allows retina to be applied on an input image, Read more

fn apply_fast_tone_mapping(
    &mut self,
    input_image: &Mat,
    output_tone_mapped_image: &mut Mat
) -> Result<()>
[src]

Method which processes an image in the aim to correct its luminance correct backlight problems, enhance details in shadows. Read more

fn get_parvo(&mut self, retina_output_parvo: &mut Mat) -> Result<()>[src]

Accessor of the details channel of the retina (models foveal vision). Read more

fn get_parvo_raw(&mut self, retina_output_parvo: &mut Mat) -> Result<()>[src]

Accessor of the details channel of the retina (models foveal vision). @see getParvo Read more

fn get_magno(&mut self, retina_output_magno: &mut Mat) -> Result<()>[src]

Accessor of the motion channel of the retina (models peripheral vision). Read more

fn get_magno_raw(&mut self, retina_output_magno: &mut Mat) -> Result<()>[src]

Accessor of the motion channel of the retina (models peripheral vision). @see getMagno Read more

fn get_magno_raw_1(&self) -> Result<Mat>[src]

fn get_parvo_raw_1(&self) -> Result<Mat>[src]

fn set_color_saturation(
    &mut self,
    saturate_colors: bool,
    color_saturation_value: f32
) -> Result<()>
[src]

Activate color saturation as the final step of the color demultiplexing process -> this saturation is a sigmoide function applied to each channel of the demultiplexed image. ## Parameters * saturateColors: boolean that activates color saturation (if true) or desactivate (if false) * colorSaturationValue: the saturation factor : a simple factor applied on the chrominance buffers Read more

fn clear_buffers(&mut self) -> Result<()>[src]

Clears all retina buffers Read more

fn activate_moving_contours_processing(&mut self, activate: bool) -> Result<()>[src]

Activate/desactivate the Magnocellular pathway processing (motion information extraction), by default, it is activated ## Parameters * activate: true if Magnocellular output should be activated, false if not... if activated, the Magnocellular output can be retrieved using the getMagno methods Read more

fn activate_contours_processing(&mut self, activate: bool) -> Result<()>[src]

Activate/desactivate the Parvocellular pathway processing (contours information extraction), by default, it is activated ## Parameters * activate: true if Parvocellular (contours information extraction) output should be activated, false if not... if activated, the Parvocellular output can be retrieved using the Retina::getParvo methods Read more

impl Send for PtrOfRetina[src]

impl Drop for PtrOfRetina[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]