pub trait BackgroundSubtractorTraitConst: AlgorithmTraitConst {
// Required method
fn as_raw_BackgroundSubtractor(&self) -> *const c_void;
// Provided method
fn get_background_image(
&self,
background_image: &mut impl ToOutputArray,
) -> Result<()> { ... }
}
Expand description
Constant methods for crate::video::BackgroundSubtractor
Required Methods§
fn as_raw_BackgroundSubtractor(&self) -> *const c_void
Provided Methods§
Sourcefn get_background_image(
&self,
background_image: &mut impl ToOutputArray,
) -> Result<()>
fn get_background_image( &self, background_image: &mut impl 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.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.