pub trait CUDA_BackgroundSubtractorGMGTrait: CUDA_BackgroundSubtractorGMGTraitConst + BackgroundSubtractorTrait {
// Required method
fn as_raw_mut_CUDA_BackgroundSubtractorGMG(&mut self) -> *mut c_void;
// Provided methods
fn apply(
&mut self,
image: &impl ToInputArray,
fgmask: &mut impl ToOutputArray,
learning_rate: f64,
stream: &mut impl StreamTrait,
) -> Result<()> { ... }
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<()> { ... }
}Expand description
Mutable methods for crate::cudalegacy::CUDA_BackgroundSubtractorGMG
Required Methods§
fn as_raw_mut_CUDA_BackgroundSubtractorGMG(&mut self) -> *mut c_void
Provided Methods§
fn apply( &mut self, image: &impl ToInputArray, fgmask: &mut impl ToOutputArray, learning_rate: f64, stream: &mut impl StreamTrait, ) -> Result<()>
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<()>
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.