@Namespace(value="cv") @NoOffset @Properties(inherit=opencv_tracking.class) public class MultiTracker extends Algorithm
The %MultiTracker is naive implementation of multiple object tracking. It process the tracked objects independently without any optimization accross the tracked objects.
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
MultiTracker()
\brief Constructor.
|
MultiTracker(long size)
Native array allocator.
|
MultiTracker(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(Tracker newTracker,
GpuMat image,
Rect2d boundingBox) |
boolean |
add(Tracker newTracker,
Mat image,
Rect2d boundingBox)
\brief Add a new object to be tracked.
|
boolean |
add(Tracker newTracker,
UMat image,
Rect2d boundingBox) |
boolean |
add(TrackerVector newTrackers,
GpuMat image,
Rect2dVector boundingBox) |
boolean |
add(TrackerVector newTrackers,
Mat image,
Rect2dVector boundingBox)
\brief Add a set of objects to be tracked.
|
boolean |
add(TrackerVector newTrackers,
UMat image,
Rect2dVector boundingBox) |
static MultiTracker |
create()
\brief Returns a pointer to a new instance of MultiTracker
|
Rect2dVector |
getObjects()
\brief Returns a reference to a storage for the tracked objects, each object corresponds to one tracker algorithm
|
MultiTracker |
position(long position) |
boolean |
update(GpuMat image) |
boolean |
update(GpuMat image,
Rect2dVector boundingBox) |
boolean |
update(Mat image)
\brief Update the current tracking status.
|
boolean |
update(Mat image,
Rect2dVector boundingBox)
\brief Update the current tracking status.
|
boolean |
update(UMat image) |
boolean |
update(UMat image,
Rect2dVector boundingBox) |
clear, empty, getDefaultName, read, save, save, write, write, writeaddress, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zeropublic MultiTracker(Pointer p)
Pointer.Pointer(Pointer).public MultiTracker(long size)
Pointer.position(long).public MultiTracker()
public MultiTracker position(long position)
@Cast(value="bool") public boolean add(@opencv_core.Ptr @ByVal Tracker newTracker, @ByVal Mat image, @Const @ByRef Rect2d boundingBox)
newTracker - tracking algorithm to be usedimage - input imageboundingBox - a rectangle represents ROI of the tracked object@Cast(value="bool") public boolean add(@opencv_core.Ptr @ByVal Tracker newTracker, @ByVal UMat image, @Const @ByRef Rect2d boundingBox)
@Cast(value="bool") public boolean add(@opencv_core.Ptr @ByVal Tracker newTracker, @ByVal GpuMat image, @Const @ByRef Rect2d boundingBox)
@Cast(value="bool") public boolean add(@ByVal TrackerVector newTrackers, @ByVal Mat image, @ByVal Rect2dVector boundingBox)
newTrackers - list of tracking algorithms to be usedimage - input imageboundingBox - list of the tracked objects@Cast(value="bool") public boolean add(@ByVal TrackerVector newTrackers, @ByVal UMat image, @ByVal Rect2dVector boundingBox)
@Cast(value="bool") public boolean add(@ByVal TrackerVector newTrackers, @ByVal GpuMat image, @ByVal Rect2dVector boundingBox)
@Cast(value="bool") public boolean update(@ByVal Mat image)
image - input image@Cast(value="bool") public boolean update(@ByVal Mat image, @ByRef Rect2dVector boundingBox)
image - input imageboundingBox - the tracking result, represent a list of ROIs of the tracked objects.@Cast(value="bool") public boolean update(@ByVal UMat image, @ByRef Rect2dVector boundingBox)
@Cast(value="bool") public boolean update(@ByVal GpuMat image, @ByRef Rect2dVector boundingBox)
@Const @ByRef public Rect2dVector getObjects()
@opencv_core.Ptr public static MultiTracker create()
Copyright © 2020. All rights reserved.