[−][src]Trait opencv::hub_prelude::BackgroundSubtractorGMG
Background Subtractor module based on the algorithm given in Gold2012 .
Takes a series of images and returns a sequence of mask (8UC1) images of the same size, where 255 indicates Foreground and 0 represents Background. This class implements an algorithm described in "Visual Tracking of Human Visitors under Variable-Lighting Conditions for a Responsive Audio Art Installation," A. Godbehere, A. Matsukawa, K. Goldberg, American Control Conference, Montreal, June 2012.
Required methods
pub fn as_raw_BackgroundSubtractorGMG(&self) -> *const c_void
[src]
pub fn as_raw_mut_BackgroundSubtractorGMG(&mut self) -> *mut c_void
[src]
Provided methods
pub fn get_max_features(&self) -> Result<i32>
[src]
Returns total number of distinct colors to maintain in histogram.
pub fn set_max_features(&mut self, max_features: i32) -> Result<()>
[src]
Sets total number of distinct colors to maintain in histogram.
pub fn get_default_learning_rate(&self) -> Result<f64>
[src]
Returns the learning rate of the algorithm.
It lies between 0.0 and 1.0. It determines how quickly features are "forgotten" from histograms.
pub fn set_default_learning_rate(&mut self, lr: f64) -> Result<()>
[src]
Sets the learning rate of the algorithm.
pub fn get_num_frames(&self) -> Result<i32>
[src]
Returns the number of frames used to initialize background model.
pub fn set_num_frames(&mut self, nframes: i32) -> Result<()>
[src]
Sets the number of frames used to initialize background model.
pub fn get_quantization_levels(&self) -> Result<i32>
[src]
Returns the parameter used for quantization of color-space.
It is the number of discrete levels in each channel to be used in histograms.
pub fn set_quantization_levels(&mut self, nlevels: i32) -> Result<()>
[src]
Sets the parameter used for quantization of color-space
pub fn get_background_prior(&self) -> Result<f64>
[src]
Returns the prior probability that each individual pixel is a background pixel.
pub fn set_background_prior(&mut self, bgprior: f64) -> Result<()>
[src]
Sets the prior probability that each individual pixel is a background pixel.
pub fn get_smoothing_radius(&self) -> Result<i32>
[src]
Returns the kernel radius used for morphological operations
pub fn set_smoothing_radius(&mut self, radius: i32) -> Result<()>
[src]
Sets the kernel radius used for morphological operations
pub fn get_decision_threshold(&self) -> Result<f64>
[src]
Returns the value of decision threshold.
Decision value is the value above which pixel is determined to be FG.
pub fn set_decision_threshold(&mut self, thresh: f64) -> Result<()>
[src]
Sets the value of decision threshold.
pub fn get_update_background_model(&self) -> Result<bool>
[src]
Returns the status of background model update
pub fn set_update_background_model(&mut self, update: bool) -> Result<()>
[src]
Sets the status of background model update
pub fn get_min_val(&self) -> Result<f64>
[src]
Returns the minimum value taken on by pixels in image sequence. Usually 0.
pub fn set_min_val(&mut self, val: f64) -> Result<()>
[src]
Sets the minimum value taken on by pixels in image sequence.
pub fn get_max_val(&self) -> Result<f64>
[src]
Returns the maximum value taken on by pixels in image sequence. e.g. 1.0 or 255.
pub fn set_max_val(&mut self, val: f64) -> Result<()>
[src]
Sets the maximum value taken on by pixels in image sequence.