Trait opencv::prelude::BackgroundSubtractorGMG [−][src]
pub trait BackgroundSubtractorGMG: BackgroundSubtractorGMGConst + BackgroundSubtractor {
fn as_raw_mut_BackgroundSubtractorGMG(&mut self) -> *mut c_void;
fn set_max_features(&mut self, max_features: i32) -> Result<()> { ... }
fn set_default_learning_rate(&mut self, lr: f64) -> Result<()> { ... }
fn set_num_frames(&mut self, nframes: i32) -> Result<()> { ... }
fn set_quantization_levels(&mut self, nlevels: i32) -> Result<()> { ... }
fn set_background_prior(&mut self, bgprior: f64) -> Result<()> { ... }
fn set_smoothing_radius(&mut self, radius: i32) -> Result<()> { ... }
fn set_decision_threshold(&mut self, thresh: f64) -> Result<()> { ... }
fn set_update_background_model(&mut self, update: bool) -> Result<()> { ... }
fn set_min_val(&mut self, val: f64) -> Result<()> { ... }
fn set_max_val(&mut self, val: f64) -> Result<()> { ... }
}Required methods
fn as_raw_mut_BackgroundSubtractorGMG(&mut self) -> *mut c_void
Provided methods
fn set_max_features(&mut self, max_features: i32) -> Result<()>
fn set_max_features(&mut self, max_features: i32) -> Result<()>
Sets total number of distinct colors to maintain in histogram.
fn set_default_learning_rate(&mut self, lr: f64) -> Result<()>
fn set_default_learning_rate(&mut self, lr: f64) -> Result<()>
Sets the learning rate of the algorithm.
fn set_num_frames(&mut self, nframes: i32) -> Result<()>
fn set_num_frames(&mut self, nframes: i32) -> Result<()>
Sets the number of frames used to initialize background model.
fn set_quantization_levels(&mut self, nlevels: i32) -> Result<()>
fn set_quantization_levels(&mut self, nlevels: i32) -> Result<()>
Sets the parameter used for quantization of color-space
fn set_background_prior(&mut self, bgprior: f64) -> Result<()>
fn set_background_prior(&mut self, bgprior: f64) -> Result<()>
Sets the prior probability that each individual pixel is a background pixel.
fn set_smoothing_radius(&mut self, radius: i32) -> Result<()>
fn set_smoothing_radius(&mut self, radius: i32) -> Result<()>
Sets the kernel radius used for morphological operations
fn set_decision_threshold(&mut self, thresh: f64) -> Result<()>
fn set_decision_threshold(&mut self, thresh: f64) -> Result<()>
Sets the value of decision threshold.
fn set_update_background_model(&mut self, update: bool) -> Result<()>
fn set_update_background_model(&mut self, update: bool) -> Result<()>
Sets the status of background model update
fn set_min_val(&mut self, val: f64) -> Result<()>
fn set_min_val(&mut self, val: f64) -> Result<()>
Sets the minimum value taken on by pixels in image sequence.
fn set_max_val(&mut self, val: f64) -> Result<()>
fn set_max_val(&mut self, val: f64) -> Result<()>
Sets the maximum value taken on by pixels in image sequence.