|
OpenCV for Unity 3.0.4
Enox Software / Please refer to OpenCV official document ( http://docs.opencv.org/5.0/index.html ) for the details of the argument of the method.
|
This class is used to track multiple objects using the specified tracker algorithm. More...
Public Member Functions | |
| legacy_MultiTracker () | |
| Constructor. | |
| bool | add (legacy_Tracker newTracker, Mat image, in Vec4d boundingBox) |
| Add a new object to be tracked. | |
| bool | add (legacy_Tracker newTracker, Mat image, in(double x, double y, double width, double height) boundingBox) |
| Add a new object to be tracked. | |
| bool | add (legacy_Tracker newTracker, Mat image, Rect2d boundingBox) |
| Add a new object to be tracked. | |
| MatOfRect2d | getObjects () |
| Returns a reference to a storage for the tracked objects, each object corresponds to one tracker algorithm. | |
| bool | update (Mat image, MatOfRect2d boundingBox) |
| Update the current tracking status. | |
Public Member Functions inherited from OpenCVForUnity.CoreModule.Algorithm | |
| virtual void | clear () |
| Clears the algorithm state. | |
| virtual bool | empty () |
| Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read. | |
| virtual string | getDefaultName () |
| IntPtr | getNativeObjAddr () |
| void | save (string filename) |
Public Member Functions inherited from OpenCVForUnity.DisposableObject | |
| void | Dispose () |
| Releases resources used by this object. | |
| void | ThrowIfDisposed () |
| Throws ObjectDisposedException if this object has been disposed. | |
Static Public Member Functions | |
| static new legacy_MultiTracker | __fromPtr__ (IntPtr addr) |
| static legacy_MultiTracker | create () |
| Returns a pointer to a new instance of MultiTracker. | |
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) |
| Returns the native pointer, or throws CoreModule.CvException if it is zero. | |
Protected Member Functions | |
| override void | Dispose (bool disposing) |
Protected Member Functions inherited from OpenCVForUnity.CoreModule.Algorithm | |
Protected Member Functions inherited from OpenCVForUnity.DisposableOpenCVObject | |
| DisposableOpenCVObject () | |
| Initializes a new instance with a zero native pointer and dispose enabled. | |
| DisposableOpenCVObject (bool isEnabledDispose) | |
| Initializes a new instance with a zero native pointer. | |
| DisposableOpenCVObject (IntPtr ptr) | |
| Initializes a new instance with the specified native pointer and dispose enabled. | |
| DisposableOpenCVObject (IntPtr ptr, bool isEnabledDispose) | |
| Initializes a new instance with the specified native pointer. | |
Protected Member Functions inherited from OpenCVForUnity.DisposableObject | |
| DisposableObject () | |
| Initializes a new instance with dispose enabled. | |
| DisposableObject (bool isEnabledDispose) | |
| Initializes a new instance. | |
Additional Inherited Members | |
Package Functions inherited from OpenCVForUnity.CoreModule.Algorithm | |
Package Attributes inherited from OpenCVForUnity.DisposableOpenCVObject | |
Properties inherited from OpenCVForUnity.DisposableObject | |
| bool | IsDisposed [get, protected set] |
| bool | IsEnabledDispose [get, set] |
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.
| OpenCVForUnity.TrackingModule.legacy_MultiTracker.legacy_MultiTracker | ( | ) |
Constructor.
|
static |
| bool OpenCVForUnity.TrackingModule.legacy_MultiTracker.add | ( | legacy_Tracker | newTracker, |
| Mat | image, | ||
| in Vec4d | boundingBox ) |
Add a new object to be tracked.
| newTracker | tracking algorithm to be used |
| image | input image |
| boundingBox | a rectangle represents ROI of the tracked object |
| bool OpenCVForUnity.TrackingModule.legacy_MultiTracker.add | ( | legacy_Tracker | newTracker, |
| Mat | image, | ||
| in(double x, double y, double width, double height) | boundingBox ) |
Add a new object to be tracked.
| newTracker | tracking algorithm to be used |
| image | input image |
| boundingBox | a rectangle represents ROI of the tracked object |
| bool OpenCVForUnity.TrackingModule.legacy_MultiTracker.add | ( | legacy_Tracker | newTracker, |
| Mat | image, | ||
| Rect2d | boundingBox ) |
Add a new object to be tracked.
| newTracker | tracking algorithm to be used |
| image | input image |
| boundingBox | a rectangle represents ROI of the tracked object |
|
static |
Returns a pointer to a new instance of MultiTracker.
|
protectedvirtual |
Reimplemented from OpenCVForUnity.CoreModule.Algorithm.
| MatOfRect2d OpenCVForUnity.TrackingModule.legacy_MultiTracker.getObjects | ( | ) |
Returns a reference to a storage for the tracked objects, each object corresponds to one tracker algorithm.
| bool OpenCVForUnity.TrackingModule.legacy_MultiTracker.update | ( | Mat | image, |
| MatOfRect2d | boundingBox ) |
Update the current tracking status.
| image | input image |
| boundingBox | the tracking result, represent a list of ROIs of the tracked objects. |