Trait opencv::prelude::BackgroundSubtractorConst
source · pub trait BackgroundSubtractorConst: AlgorithmTraitConst {
fn as_raw_BackgroundSubtractor(&self) -> *const c_void;
fn get_background_image(
&self,
background_image: &mut dyn ToOutputArray
) -> Result<()> { ... }
}
Expand description
Base class for background/foreground segmentation. :
The class is only used to define the common interface for the whole family of background/foreground segmentation algorithms.
Required Methods
fn as_raw_BackgroundSubtractor(&self) -> *const c_void
Provided Methods
sourcefn get_background_image(
&self,
background_image: &mut dyn ToOutputArray
) -> Result<()>
fn get_background_image(
&self,
background_image: &mut dyn ToOutputArray
) -> Result<()>
Computes a background image.
Parameters
- backgroundImage: The output background image.
Note: Sometimes the background image can be very blurry, as it contain the average background statistics.