pub struct TrackerMIL { /* private fields */ }Expand description
The MIL algorithm trains a classifier in an online manner to separate the object from the background.
Multiple Instance Learning avoids the drift problem for a robust tracking. The implementation is based on MIL .
Original code can be found here http://vision.ucsd.edu/~bbabenko/project_miltrack.shtml
Implementations§
Source§impl TrackerMIL
impl TrackerMIL
Sourcepub fn create(parameters: TrackerMIL_Params) -> Result<Ptr<TrackerMIL>>
pub fn create(parameters: TrackerMIL_Params) -> Result<Ptr<TrackerMIL>>
Sourcepub fn create_def() -> Result<Ptr<TrackerMIL>>
pub fn create_def() -> Result<Ptr<TrackerMIL>>
Create MIL tracker instance
§Parameters
- parameters: MIL parameters TrackerMIL::Params
§Note
This alternative version of TrackerMIL::create function uses the following default values for its arguments:
- parameters: TrackerMIL::Params()
Trait Implementations§
Source§impl Boxed for TrackerMIL
impl Boxed for TrackerMIL
Source§unsafe fn from_raw(ptr: <TrackerMIL as OpenCVFromExtern>::ExternReceive) -> Self
unsafe fn from_raw(ptr: <TrackerMIL as OpenCVFromExtern>::ExternReceive) -> Self
Wrap the specified raw pointer Read more
Source§fn into_raw(self) -> <TrackerMIL as OpenCVTypeExternContainer>::ExternSendMut
fn into_raw(self) -> <TrackerMIL as OpenCVTypeExternContainer>::ExternSendMut
Return the underlying raw pointer while consuming this wrapper. Read more
Source§fn as_raw(&self) -> <TrackerMIL as OpenCVTypeExternContainer>::ExternSend
fn as_raw(&self) -> <TrackerMIL as OpenCVTypeExternContainer>::ExternSend
Return the underlying raw pointer. Read more
Source§fn as_raw_mut(
&mut self,
) -> <TrackerMIL as OpenCVTypeExternContainer>::ExternSendMut
fn as_raw_mut( &mut self, ) -> <TrackerMIL as OpenCVTypeExternContainer>::ExternSendMut
Return the underlying mutable raw pointer Read more
Source§impl Debug for TrackerMIL
impl Debug for TrackerMIL
Source§impl Drop for TrackerMIL
impl Drop for TrackerMIL
Source§impl From<TrackerMIL> for Tracker
impl From<TrackerMIL> for Tracker
Source§fn from(s: TrackerMIL) -> Self
fn from(s: TrackerMIL) -> Self
Converts to this type from the input type.
Source§impl TrackerMILTrait for TrackerMIL
impl TrackerMILTrait for TrackerMIL
fn as_raw_mut_TrackerMIL(&mut self) -> *mut c_void
Source§impl TrackerMILTraitConst for TrackerMIL
impl TrackerMILTraitConst for TrackerMIL
fn as_raw_TrackerMIL(&self) -> *const c_void
Source§impl TrackerTrait for TrackerMIL
impl TrackerTrait for TrackerMIL
Source§impl TrackerTraitConst for TrackerMIL
impl TrackerTraitConst for TrackerMIL
fn as_raw_Tracker(&self) -> *const c_void
Source§impl TryFrom<Tracker> for TrackerMIL
impl TryFrom<Tracker> for TrackerMIL
impl Send for TrackerMIL
Auto Trait Implementations§
impl Freeze for TrackerMIL
impl RefUnwindSafe for TrackerMIL
impl !Sync for TrackerMIL
impl Unpin for TrackerMIL
impl UnwindSafe for TrackerMIL
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