Trait opencv::prelude::BackgroundSubtractorCNTTrait
source · pub trait BackgroundSubtractorCNTTrait: BackgroundSubtractorCNTTraitConst + BackgroundSubtractorTrait {
// Required method
fn as_raw_mut_BackgroundSubtractorCNT(&mut self) -> *mut c_void;
// Provided methods
fn apply(
&mut self,
image: &impl ToInputArray,
fgmask: &mut impl ToOutputArray,
learning_rate: f64
) -> Result<()> { ... }
fn apply_def(
&mut self,
image: &impl ToInputArray,
fgmask: &mut impl ToOutputArray
) -> Result<()> { ... }
fn set_min_pixel_stability(&mut self, value: i32) -> Result<()> { ... }
fn set_max_pixel_stability(&mut self, value: i32) -> Result<()> { ... }
fn set_use_history(&mut self, value: bool) -> Result<()> { ... }
fn set_is_parallel(&mut self, value: bool) -> Result<()> { ... }
}
Expand description
Mutable methods for crate::bgsegm::BackgroundSubtractorCNT
Required Methods§
fn as_raw_mut_BackgroundSubtractorCNT(&mut self) -> *mut c_void
Provided Methods§
sourcefn apply(
&mut self,
image: &impl ToInputArray,
fgmask: &mut impl ToOutputArray,
learning_rate: f64
) -> Result<()>
fn apply( &mut self, image: &impl ToInputArray, fgmask: &mut impl ToOutputArray, learning_rate: f64 ) -> Result<()>
C++ default parameters
- learning_rate: -1
sourcefn apply_def(
&mut self,
image: &impl ToInputArray,
fgmask: &mut impl ToOutputArray
) -> Result<()>
fn apply_def( &mut self, image: &impl ToInputArray, fgmask: &mut impl ToOutputArray ) -> Result<()>
Note
This alternative version of BackgroundSubtractorCNTTrait::apply function uses the following default values for its arguments:
- learning_rate: -1
sourcefn set_min_pixel_stability(&mut self, value: i32) -> Result<()>
fn set_min_pixel_stability(&mut self, value: i32) -> Result<()>
Sets the number of frames with same pixel color to consider stable.
sourcefn set_max_pixel_stability(&mut self, value: i32) -> Result<()>
fn set_max_pixel_stability(&mut self, value: i32) -> Result<()>
Sets the maximum allowed credit for a pixel in history.
sourcefn set_use_history(&mut self, value: bool) -> Result<()>
fn set_use_history(&mut self, value: bool) -> Result<()>
Sets if we’re giving a pixel credit for being stable for a long time.
sourcefn set_is_parallel(&mut self, value: bool) -> Result<()>
fn set_is_parallel(&mut self, value: bool) -> Result<()>
Sets if we’re parallelizing the algorithm.
Object Safety§
This trait is not object safe.