Struct opencv::face::StandardCollector
source · pub struct StandardCollector { /* private fields */ }
Expand description
Default predict collector
Trace minimal distance with treshhold checking (that is default behavior for most predict logic)
Implementations§
source§impl StandardCollector
impl StandardCollector
sourcepub fn new(threshold_: f64) -> Result<StandardCollector>
pub fn new(threshold_: f64) -> Result<StandardCollector>
sourcepub fn new_def() -> Result<StandardCollector>
pub fn new_def() -> Result<StandardCollector>
sourcepub fn create_def() -> Result<Ptr<StandardCollector>>
pub fn create_def() -> Result<Ptr<StandardCollector>>
Static constructor
§Parameters
- threshold: set threshold
§Note
This alternative version of StandardCollector::create function uses the following default values for its arguments:
- threshold: DBL_MAX
Trait Implementations§
source§impl Boxed for StandardCollector
impl Boxed for StandardCollector
source§unsafe fn from_raw(
ptr: <StandardCollector as OpenCVFromExtern>::ExternReceive
) -> Self
unsafe fn from_raw( ptr: <StandardCollector as OpenCVFromExtern>::ExternReceive ) -> Self
Wrap the specified raw pointer Read more
source§fn into_raw(
self
) -> <StandardCollector as OpenCVTypeExternContainer>::ExternSendMut
fn into_raw( self ) -> <StandardCollector as OpenCVTypeExternContainer>::ExternSendMut
Return the underlying raw pointer while consuming this wrapper. Read more
source§fn as_raw(&self) -> <StandardCollector as OpenCVTypeExternContainer>::ExternSend
fn as_raw(&self) -> <StandardCollector as OpenCVTypeExternContainer>::ExternSend
Return the underlying raw pointer. Read more
source§fn as_raw_mut(
&mut self
) -> <StandardCollector as OpenCVTypeExternContainer>::ExternSendMut
fn as_raw_mut( &mut self ) -> <StandardCollector as OpenCVTypeExternContainer>::ExternSendMut
Return the underlying mutable raw pointer Read more
source§impl Debug for StandardCollector
impl Debug for StandardCollector
source§impl Drop for StandardCollector
impl Drop for StandardCollector
source§impl From<StandardCollector> for PredictCollector
impl From<StandardCollector> for PredictCollector
source§fn from(s: StandardCollector) -> Self
fn from(s: StandardCollector) -> Self
Converts to this type from the input type.
source§impl PredictCollectorTrait for StandardCollector
impl PredictCollectorTrait for StandardCollector
source§impl PredictCollectorTraitConst for StandardCollector
impl PredictCollectorTraitConst for StandardCollector
fn as_raw_PredictCollector(&self) -> *const c_void
source§impl StandardCollectorTraitConst for StandardCollector
impl StandardCollectorTraitConst for StandardCollector
fn as_raw_StandardCollector(&self) -> *const c_void
source§fn get_min_label(&self) -> Result<i32>
fn get_min_label(&self) -> Result<i32>
Returns label with minimal distance
source§fn get_min_dist(&self) -> Result<f64>
fn get_min_dist(&self) -> Result<f64>
Returns minimal distance value
source§impl TryFrom<PredictCollector> for StandardCollector
impl TryFrom<PredictCollector> for StandardCollector
impl Send for StandardCollector
Auto Trait Implementations§
impl Freeze for StandardCollector
impl RefUnwindSafe for StandardCollector
impl !Sync for StandardCollector
impl Unpin for StandardCollector
impl UnwindSafe for StandardCollector
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 of course unsafe as it breaks the Rust aliasing rules, but it might be useful for some performance
sensitive operations. One example of an OpenCV function that allows such in-place modification is imgproc::threshold
. Read more