[−][src]Trait opencv::bgsegm::BackgroundSubtractorCNT
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
fn as_raw_BackgroundSubtractorCNT(&self) -> *mut c_void
Provided methods
fn apply(
&mut self,
image: &dyn ToInputArray,
fgmask: &mut dyn ToOutputArray,
learning_rate: f64
) -> Result<()>
&mut self,
image: &dyn ToInputArray,
fgmask: &mut dyn ToOutputArray,
learning_rate: f64
) -> Result<()>
C++ default parameters
- learning_rate: -1
fn get_background_image(
&self,
background_image: &mut dyn ToOutputArray
) -> Result<()>
&self,
background_image: &mut dyn ToOutputArray
) -> Result<()>
fn get_min_pixel_stability(&self) -> Result<i32>
Returns number of frames with same pixel color to consider stable.
fn set_min_pixel_stability(&mut self, value: i32) -> Result<()>
Sets the number of frames with same pixel color to consider stable.
fn get_max_pixel_stability(&self) -> Result<i32>
Returns maximum allowed credit for a pixel in history.
fn set_max_pixel_stability(&mut self, value: i32) -> Result<()>
Sets the maximum allowed credit for a pixel in history.
fn get_use_history(&self) -> Result<bool>
Returns if we're giving a pixel credit for being stable for a long time.
fn set_use_history(&mut self, value: bool) -> Result<()>
Sets if we're giving a pixel credit for being stable for a long time.
fn get_is_parallel(&self) -> Result<bool>
Returns if we're parallelizing the algorithm.
fn set_is_parallel(&mut self, value: bool) -> Result<()>
Sets if we're parallelizing the algorithm.