Table of Contents

Class MultiTracker

Namespace
Emgu.CV.Legacy
Assembly
Emgu.CV.dll

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.

public class MultiTracker : UnmanagedObject, IDisposable
Inheritance
MultiTracker
Implements
Inherited Members

Constructors

MultiTracker()

Constructor. In the case of trackerType is given, it will be set as the default algorithm for all trackers.

public MultiTracker()

Methods

Add(Tracker, IInputArray, Rectangle)

Add a new object to be tracked. The defaultAlgorithm will be used the newly added tracker.

public bool Add(Tracker tracker, IInputArray image, Rectangle boundingBox)

Parameters

tracker Tracker

The tracker to use for tracking the image

image IInputArray

Input image

boundingBox Rectangle

A rectangle represents ROI of the tracked object

Returns

bool

True if successfully added

DisposeObject()

Release the unmanaged memory associated with this multi-tracker.

protected override void DisposeObject()

GetObjects()

Returns the tracked objects, each object corresponds to one tracker algorithm.

public Rectangle[] GetObjects()

Returns

Rectangle[]

The tracked objects, each object corresponds to one tracker algorithm.

Update(Mat, VectorOfRect)

Update the current tracking status. The result will be saved in the internal storage.

public bool Update(Mat image, VectorOfRect boundingBox)

Parameters

image Mat

Input image

boundingBox VectorOfRect

the tracking result, represent a list of ROIs of the tracked objects.

Returns

bool

True id update success