pub struct CUDA_FGDParams { /* private fields */ }Implementations§
Source§impl CUDA_FGDParams
impl CUDA_FGDParams
Sourcepub fn default() -> Result<CUDA_FGDParams>
pub fn default() -> Result<CUDA_FGDParams>
default Params
Trait Implementations§
Source§impl Boxed for CUDA_FGDParams
impl Boxed for CUDA_FGDParams
Source§unsafe fn from_raw(
ptr: <CUDA_FGDParams as OpenCVFromExtern>::ExternReceive,
) -> Self
unsafe fn from_raw( ptr: <CUDA_FGDParams as OpenCVFromExtern>::ExternReceive, ) -> Self
Wrap the specified raw pointer Read more
Source§fn into_raw(
self,
) -> <CUDA_FGDParams as OpenCVTypeExternContainer>::ExternSendMut
fn into_raw( self, ) -> <CUDA_FGDParams as OpenCVTypeExternContainer>::ExternSendMut
Return the underlying raw pointer while consuming this wrapper. Read more
Source§fn as_raw(&self) -> <CUDA_FGDParams as OpenCVTypeExternContainer>::ExternSend
fn as_raw(&self) -> <CUDA_FGDParams as OpenCVTypeExternContainer>::ExternSend
Return the underlying raw pointer. Read more
Source§fn as_raw_mut(
&mut self,
) -> <CUDA_FGDParams as OpenCVTypeExternContainer>::ExternSendMut
fn as_raw_mut( &mut self, ) -> <CUDA_FGDParams as OpenCVTypeExternContainer>::ExternSendMut
Return the underlying mutable raw pointer Read more
Source§impl CUDA_FGDParamsTrait for CUDA_FGDParams
impl CUDA_FGDParamsTrait for CUDA_FGDParams
fn as_raw_mut_CUDA_FGDParams(&mut self) -> *mut c_void
Source§fn set_lc(&mut self, val: i32)
fn set_lc(&mut self, val: i32)
Quantized levels per ‘color’ component. Power of two, typically 32, 64 or 128.
Source§fn set_n1c(&mut self, val: i32)
fn set_n1c(&mut self, val: i32)
Number of color vectors used to model normal background color variation at a given pixel.
Source§fn set_n2c(&mut self, val: i32)
fn set_n2c(&mut self, val: i32)
Number of color vectors retained at given pixel. Must be > N1c, typically ~ 5/3 of N1c.
Used to allow the first N1c vectors to adapt over time to changing background.
Source§fn set_lcc(&mut self, val: i32)
fn set_lcc(&mut self, val: i32)
Quantized levels per ‘color co-occurrence’ component. Power of two, typically 16, 32 or 64.
Source§fn set_n1cc(&mut self, val: i32)
fn set_n1cc(&mut self, val: i32)
Number of color co-occurrence vectors used to model normal background color variation at a given pixel.
Source§fn set_n2cc(&mut self, val: i32)
fn set_n2cc(&mut self, val: i32)
Number of color co-occurrence vectors retained at given pixel. Must be > N1cc, typically ~ 5/3 of N1cc.
Used to allow the first N1cc vectors to adapt over time to changing background.
Source§fn set_is_obj_without_holes(&mut self, val: bool)
fn set_is_obj_without_holes(&mut self, val: bool)
If TRUE we ignore holes within foreground blobs. Defaults to TRUE.
Source§fn set_perform_morphing(&mut self, val: i32)
fn set_perform_morphing(&mut self, val: i32)
Number of erode-dilate-erode foreground-blob cleanup iterations.
These erase one-pixel junk blobs and merge almost-touching blobs. Default value is 1.
Source§fn set_alpha1(&mut self, val: f32)
fn set_alpha1(&mut self, val: f32)
How quickly we forget old background pixel values seen. Typically set to 0.1.
Source§fn set_alpha2(&mut self, val: f32)
fn set_alpha2(&mut self, val: f32)
“Controls speed of feature learning”. Depends on T. Typical value circa 0.005.
Source§fn set_alpha3(&mut self, val: f32)
fn set_alpha3(&mut self, val: f32)
Alternate to alpha2, used (e.g.) for quicker initial convergence. Typical value 0.1.
Source§fn set_delta(&mut self, val: f32)
fn set_delta(&mut self, val: f32)
Affects color and color co-occurrence quantization, typically set to 2.
Source§fn set_t(&mut self, val: f32)
fn set_t(&mut self, val: f32)
A percentage value which determines when new features can be recognized as new background. (Typically 0.9).
Source§fn set_min_area(&mut self, val: f32)
fn set_min_area(&mut self, val: f32)
Discard foreground blobs whose bounding box is smaller than this threshold.
Source§impl CUDA_FGDParamsTraitConst for CUDA_FGDParams
impl CUDA_FGDParamsTraitConst for CUDA_FGDParams
fn as_raw_CUDA_FGDParams(&self) -> *const c_void
Source§fn lc(&self) -> i32
fn lc(&self) -> i32
Quantized levels per ‘color’ component. Power of two, typically 32, 64 or 128.
Source§fn n1c(&self) -> i32
fn n1c(&self) -> i32
Number of color vectors used to model normal background color variation at a given pixel.
Source§fn n2c(&self) -> i32
fn n2c(&self) -> i32
Number of color vectors retained at given pixel. Must be > N1c, typically ~ 5/3 of N1c.
Used to allow the first N1c vectors to adapt over time to changing background.
Source§fn lcc(&self) -> i32
fn lcc(&self) -> i32
Quantized levels per ‘color co-occurrence’ component. Power of two, typically 16, 32 or 64.
Source§fn n1cc(&self) -> i32
fn n1cc(&self) -> i32
Number of color co-occurrence vectors used to model normal background color variation at a given pixel.
Source§fn n2cc(&self) -> i32
fn n2cc(&self) -> i32
Number of color co-occurrence vectors retained at given pixel. Must be > N1cc, typically ~ 5/3 of N1cc.
Used to allow the first N1cc vectors to adapt over time to changing background.
Source§fn is_obj_without_holes(&self) -> bool
fn is_obj_without_holes(&self) -> bool
If TRUE we ignore holes within foreground blobs. Defaults to TRUE.
Source§fn perform_morphing(&self) -> i32
fn perform_morphing(&self) -> i32
Number of erode-dilate-erode foreground-blob cleanup iterations.
These erase one-pixel junk blobs and merge almost-touching blobs. Default value is 1.
Source§fn alpha1(&self) -> f32
fn alpha1(&self) -> f32
How quickly we forget old background pixel values seen. Typically set to 0.1.
Source§fn alpha2(&self) -> f32
fn alpha2(&self) -> f32
“Controls speed of feature learning”. Depends on T. Typical value circa 0.005.
Source§fn alpha3(&self) -> f32
fn alpha3(&self) -> f32
Alternate to alpha2, used (e.g.) for quicker initial convergence. Typical value 0.1.
Source§fn delta(&self) -> f32
fn delta(&self) -> f32
Affects color and color co-occurrence quantization, typically set to 2.
Source§impl Debug for CUDA_FGDParams
impl Debug for CUDA_FGDParams
Source§impl Drop for CUDA_FGDParams
impl Drop for CUDA_FGDParams
impl Send for CUDA_FGDParams
Auto Trait Implementations§
impl Freeze for CUDA_FGDParams
impl RefUnwindSafe for CUDA_FGDParams
impl !Sync for CUDA_FGDParams
impl Unpin for CUDA_FGDParams
impl UnwindSafe for CUDA_FGDParams
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<Mat> ModifyInplace for Matwhere
Mat: Boxed,
impl<Mat> ModifyInplace for Matwhere
Mat: Boxed,
Source§unsafe fn modify_inplace<Res>(
&mut self,
f: impl FnOnce(&Mat, &mut Mat) -> Res,
) -> Res
unsafe fn modify_inplace<Res>( &mut self, f: impl FnOnce(&Mat, &mut Mat) -> Res, ) -> Res
Helper function to call OpenCV functions that allow in-place modification of a
Mat or another similar object. By passing
a mutable reference to the Mat to this function your closure will get called with the read reference and a write references
to the same Mat. This is unsafe in a general case as it leads to having non-exclusive mutable access to the internal data,
but it can be useful for some performance sensitive operations. One example of an OpenCV function that allows such in-place
modification is imgproc::threshold. Read more