[][src]Trait opencv::bgsegm::prelude::BackgroundSubtractorCNT

pub trait BackgroundSubtractorCNT: BackgroundSubtractor {
    pub fn as_raw_BackgroundSubtractorCNT(&self) -> *const c_void;
pub fn as_raw_mut_BackgroundSubtractorCNT(&mut self) -> *mut c_void; pub fn apply(
        &mut self,
        image: &dyn ToInputArray,
        fgmask: &mut dyn ToOutputArray,
        learning_rate: f64
    ) -> Result<()> { ... }
pub fn get_background_image(
        &self,
        background_image: &mut dyn ToOutputArray
    ) -> Result<()> { ... }
pub fn get_min_pixel_stability(&self) -> Result<i32> { ... }
pub fn set_min_pixel_stability(&mut self, value: i32) -> Result<()> { ... }
pub fn get_max_pixel_stability(&self) -> Result<i32> { ... }
pub fn set_max_pixel_stability(&mut self, value: i32) -> Result<()> { ... }
pub fn get_use_history(&self) -> Result<bool> { ... }
pub fn set_use_history(&mut self, value: bool) -> Result<()> { ... }
pub fn get_is_parallel(&self) -> Result<bool> { ... }
pub fn set_is_parallel(&mut self, value: bool) -> Result<()> { ... } }

Background subtraction based on counting.

About as fast as MOG2 on a high end system. More than twice faster than MOG2 on cheap hardware (benchmarked on Raspberry Pi3).

%Algorithm by Sagi Zeevi ( https://github.com/sagi-z/BackgroundSubtractorCNT )

Required methods

Loading content...

Provided methods

pub fn apply(
    &mut self,
    image: &dyn ToInputArray,
    fgmask: &mut dyn ToOutputArray,
    learning_rate: f64
) -> Result<()>
[src]

C++ default parameters

  • learning_rate: -1

pub fn get_background_image(
    &self,
    background_image: &mut dyn ToOutputArray
) -> Result<()>
[src]

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

Returns number of frames with same pixel color to consider stable.

pub fn set_min_pixel_stability(&mut self, value: i32) -> Result<()>[src]

Sets the number of frames with same pixel color to consider stable.

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

Returns maximum allowed credit for a pixel in history.

pub fn set_max_pixel_stability(&mut self, value: i32) -> Result<()>[src]

Sets the maximum allowed credit for a pixel in history.

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

Returns if we're giving a pixel credit for being stable for a long time.

pub fn set_use_history(&mut self, value: bool) -> Result<()>[src]

Sets if we're giving a pixel credit for being stable for a long time.

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

Returns if we're parallelizing the algorithm.

pub fn set_is_parallel(&mut self, value: bool) -> Result<()>[src]

Sets if we're parallelizing the algorithm.

Loading content...

Implementors

Loading content...