pub trait BackgroundSubtractorCNTTraitConst: BackgroundSubtractorTraitConst {
// Required method
fn as_raw_BackgroundSubtractorCNT(&self) -> *const c_void;
// Provided methods
fn get_background_image(
&self,
background_image: &mut impl ToOutputArray,
) -> Result<()> { ... }
fn get_min_pixel_stability(&self) -> Result<i32> { ... }
fn get_max_pixel_stability(&self) -> Result<i32> { ... }
fn get_use_history(&self) -> Result<bool> { ... }
fn get_is_parallel(&self) -> Result<bool> { ... }
}
Expand description
Constant methods for crate::bgsegm::BackgroundSubtractorCNT
Required Methods§
fn as_raw_BackgroundSubtractorCNT(&self) -> *const c_void
Provided Methods§
fn get_background_image( &self, background_image: &mut impl ToOutputArray, ) -> Result<()>
Sourcefn get_min_pixel_stability(&self) -> Result<i32>
fn get_min_pixel_stability(&self) -> Result<i32>
Returns number of frames with same pixel color to consider stable.
Sourcefn get_max_pixel_stability(&self) -> Result<i32>
fn get_max_pixel_stability(&self) -> Result<i32>
Returns maximum allowed credit for a pixel in history.
Sourcefn get_use_history(&self) -> Result<bool>
fn get_use_history(&self) -> Result<bool>
Returns if we’re giving a pixel credit for being stable for a long time.
Sourcefn get_is_parallel(&self) -> Result<bool>
fn get_is_parallel(&self) -> Result<bool>
Returns if we’re parallelizing the algorithm.
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.