[][src]Trait opencv::optflow::prelude::PCAPriorTrait

pub trait PCAPriorTrait {
    pub fn as_raw_PCAPrior(&self) -> *const c_void;
pub fn as_raw_mut_PCAPrior(&mut self) -> *mut c_void; pub fn get_padding(&self) -> Result<i32> { ... }
pub fn get_basis_size(&self) -> Result<i32> { ... }
pub fn fill_constraints(
        &self,
        a1: &mut f32,
        a2: &mut f32,
        b1: &mut f32,
        b2: &mut f32
    ) -> Result<()> { ... } }

@brief This class can be used for imposing a learned prior on the resulting optical flow. Solution will be regularized according to this prior. You need to generate appropriate prior file with "learn_prior.py" script beforehand.

Required methods

Loading content...

Provided methods

pub fn get_padding(&self) -> Result<i32>[src]

pub fn get_basis_size(&self) -> Result<i32>[src]

pub fn fill_constraints(
    &self,
    a1: &mut f32,
    a2: &mut f32,
    b1: &mut f32,
    b2: &mut f32
) -> Result<()>
[src]

Loading content...

Implementors

impl PCAPriorTrait for PCAPrior[src]

impl PCAPriorTrait for PtrOfPCAPrior[src]

Loading content...