CUDA_FGDParams

Struct CUDA_FGDParams 

Source
pub struct CUDA_FGDParams { /* private fields */ }

Implementations§

Trait Implementations§

Source§

impl Boxed for CUDA_FGDParams

Source§

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

Return the underlying raw pointer while consuming this wrapper. Read more
Source§

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

Return the underlying mutable raw pointer Read more
Source§

impl CUDA_FGDParamsTrait for CUDA_FGDParams

Source§

fn as_raw_mut_CUDA_FGDParams(&mut self) -> *mut c_void

Source§

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)

Number of color vectors used to model normal background color variation at a given pixel.
Source§

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)

Quantized levels per ‘color co-occurrence’ component. Power of two, typically 16, 32 or 64.
Source§

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)

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)

If TRUE we ignore holes within foreground blobs. Defaults to TRUE.
Source§

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)

How quickly we forget old background pixel values seen. Typically set to 0.1.
Source§

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)

Alternate to alpha2, used (e.g.) for quicker initial convergence. Typical value 0.1.
Source§

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)

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)

Discard foreground blobs whose bounding box is smaller than this threshold.
Source§

impl CUDA_FGDParamsTraitConst for CUDA_FGDParams

Source§

fn as_raw_CUDA_FGDParams(&self) -> *const c_void

Source§

fn lc(&self) -> i32

Quantized levels per ‘color’ component. Power of two, typically 32, 64 or 128.
Source§

fn n1c(&self) -> i32

Number of color vectors used to model normal background color variation at a given pixel.
Source§

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

Quantized levels per ‘color co-occurrence’ component. Power of two, typically 16, 32 or 64.
Source§

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

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

If TRUE we ignore holes within foreground blobs. Defaults to TRUE.
Source§

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

How quickly we forget old background pixel values seen. Typically set to 0.1.
Source§

fn alpha2(&self) -> f32

“Controls speed of feature learning”. Depends on T. Typical value circa 0.005.
Source§

fn alpha3(&self) -> f32

Alternate to alpha2, used (e.g.) for quicker initial convergence. Typical value 0.1.
Source§

fn delta(&self) -> f32

Affects color and color co-occurrence quantization, typically set to 2.
Source§

fn t(&self) -> f32

A percentage value which determines when new features can be recognized as new background. (Typically 0.9).
Source§

fn min_area(&self) -> f32

Discard foreground blobs whose bounding box is smaller than this threshold.
Source§

impl Debug for CUDA_FGDParams

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Drop for CUDA_FGDParams

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

impl Send for CUDA_FGDParams

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<Mat> ModifyInplace for Mat
where Mat: Boxed,

Source§

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
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.