pub trait BackgroundSubtractorGMGTraitConst: BackgroundSubtractorTraitConst {
// Required method
fn as_raw_BackgroundSubtractorGMG(&self) -> *const c_void;
// Provided methods
fn get_background_image(
&self,
background_image: &mut impl ToOutputArray,
) -> Result<()> { ... }
fn get_max_features(&self) -> Result<i32> { ... }
fn get_default_learning_rate(&self) -> Result<f64> { ... }
fn get_num_frames(&self) -> Result<i32> { ... }
fn get_quantization_levels(&self) -> Result<i32> { ... }
fn get_background_prior(&self) -> Result<f64> { ... }
fn get_smoothing_radius(&self) -> Result<i32> { ... }
fn get_decision_threshold(&self) -> Result<f64> { ... }
fn get_update_background_model(&self) -> Result<bool> { ... }
fn get_min_val(&self) -> Result<f64> { ... }
fn get_max_val(&self) -> Result<f64> { ... }
}
Expand description
Constant methods for crate::bgsegm::BackgroundSubtractorGMG
Required Methods§
fn as_raw_BackgroundSubtractorGMG(&self) -> *const c_void
Provided Methods§
fn get_background_image( &self, background_image: &mut impl ToOutputArray, ) -> Result<()>
Sourcefn get_max_features(&self) -> Result<i32>
fn get_max_features(&self) -> Result<i32>
Returns total number of distinct colors to maintain in histogram.
Sourcefn get_default_learning_rate(&self) -> Result<f64>
fn get_default_learning_rate(&self) -> Result<f64>
Returns the learning rate of the algorithm.
It lies between 0.0 and 1.0. It determines how quickly features are “forgotten” from histograms.
Sourcefn get_num_frames(&self) -> Result<i32>
fn get_num_frames(&self) -> Result<i32>
Returns the number of frames used to initialize background model.
Sourcefn get_quantization_levels(&self) -> Result<i32>
fn get_quantization_levels(&self) -> Result<i32>
Returns the parameter used for quantization of color-space.
It is the number of discrete levels in each channel to be used in histograms.
Sourcefn get_background_prior(&self) -> Result<f64>
fn get_background_prior(&self) -> Result<f64>
Returns the prior probability that each individual pixel is a background pixel.
Sourcefn get_smoothing_radius(&self) -> Result<i32>
fn get_smoothing_radius(&self) -> Result<i32>
Returns the kernel radius used for morphological operations
Sourcefn get_decision_threshold(&self) -> Result<f64>
fn get_decision_threshold(&self) -> Result<f64>
Returns the value of decision threshold.
Decision value is the value above which pixel is determined to be FG.
Sourcefn get_update_background_model(&self) -> Result<bool>
fn get_update_background_model(&self) -> Result<bool>
Returns the status of background model update
Sourcefn get_min_val(&self) -> Result<f64>
fn get_min_val(&self) -> Result<f64>
Returns the minimum value taken on by pixels in image sequence. Usually 0.
Sourcefn get_max_val(&self) -> Result<f64>
fn get_max_val(&self) -> Result<f64>
Returns the maximum value taken on by pixels in image sequence. e.g. 1.0 or 255.
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.