OpenCV for Unity  2.6.0
Enox Software / Please refer to OpenCV official document ( http://docs.opencv.org/4.9.0/index.html ) for the details of the argument of the method.
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
OpenCVForUnity.TrackingModule.legacy_MultiTracker Class Reference

This class is used to track multiple objects using the specified tracker algorithm. More...

Inheritance diagram for OpenCVForUnity.TrackingModule.legacy_MultiTracker:
OpenCVForUnity.CoreModule.Algorithm OpenCVForUnity.DisposableOpenCVObject OpenCVForUnity.DisposableObject

Public Member Functions

 legacy_MultiTracker ()
 Constructor. More...
 
bool add (legacy_Tracker newTracker, Mat image, Rect2d boundingBox)
 Add a new object to be tracked. More...
 
bool update (Mat image, MatOfRect2d boundingBox)
 Update the current tracking status. More...
 
MatOfRect2d getObjects ()
 Returns a reference to a storage for the tracked objects, each object corresponds to one tracker algorithm. More...
 
- Public Member Functions inherited from OpenCVForUnity.CoreModule.Algorithm
IntPtr getNativeObjAddr ()
 
virtual void clear ()
 Clears the algorithm state. More...
 
virtual bool empty ()
 Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read. More...
 
void save (string filename)
 
virtual string getDefaultName ()
 
- Public Member Functions inherited from OpenCVForUnity.DisposableObject
void Dispose ()
 
void ThrowIfDisposed ()
 

Static Public Member Functions

static new legacy_MultiTracker __fromPtr__ (IntPtr addr)
 
- Static Public Member Functions inherited from OpenCVForUnity.CoreModule.Algorithm
static Algorithm __fromPtr__ (IntPtr addr)
 
- Static Public Member Functions inherited from OpenCVForUnity.DisposableObject
static IntPtr ThrowIfNullIntPtr (IntPtr ptr)
 

Protected Member Functions

override void Dispose (bool disposing)
 
- Protected Member Functions inherited from OpenCVForUnity.DisposableOpenCVObject
 DisposableOpenCVObject ()
 
 DisposableOpenCVObject (IntPtr ptr)
 
 DisposableOpenCVObject (bool isEnabledDispose)
 
 DisposableOpenCVObject (IntPtr ptr, bool isEnabledDispose)
 
- Protected Member Functions inherited from OpenCVForUnity.DisposableObject
 DisposableObject ()
 
 DisposableObject (bool isEnabledDispose)
 

Additional Inherited Members

- Properties inherited from OpenCVForUnity.DisposableObject
bool IsDisposed [get, protected set]
 
bool IsEnabledDispose [get, set]
 

Detailed Description

This class is used to track multiple objects using the specified tracker algorithm.

The MultiTracker is naive implementation of multiple object tracking. It process the tracked objects independently without any optimization accross the tracked objects.

Constructor & Destructor Documentation

◆ legacy_MultiTracker()

OpenCVForUnity.TrackingModule.legacy_MultiTracker.legacy_MultiTracker ( )

Constructor.

Member Function Documentation

◆ __fromPtr__()

static new legacy_MultiTracker OpenCVForUnity.TrackingModule.legacy_MultiTracker.__fromPtr__ ( IntPtr  addr)
static

◆ add()

bool OpenCVForUnity.TrackingModule.legacy_MultiTracker.add ( legacy_Tracker  newTracker,
Mat  image,
Rect2d  boundingBox 
)

Add a new object to be tracked.

Parameters
newTrackertracking algorithm to be used
imageinput image
boundingBoxa rectangle represents ROI of the tracked object

◆ Dispose()

override void OpenCVForUnity.TrackingModule.legacy_MultiTracker.Dispose ( bool  disposing)
protectedvirtual

◆ getObjects()

MatOfRect2d OpenCVForUnity.TrackingModule.legacy_MultiTracker.getObjects ( )

Returns a reference to a storage for the tracked objects, each object corresponds to one tracker algorithm.

◆ update()

bool OpenCVForUnity.TrackingModule.legacy_MultiTracker.update ( Mat  image,
MatOfRect2d  boundingBox 
)

Update the current tracking status.

Parameters
imageinput image
boundingBoxthe tracking result, represent a list of ROIs of the tracked objects.

The documentation for this class was generated from the following file: