@Namespace(value="cv") @NoOffset @Properties(inherit=opencv_tracking.class) public class MultiTracker_Alt extends Pointer
Tracker, MultiTrackerTLD
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
MultiTracker_Alt()
\brief Constructor for Multitracker
|
MultiTracker_Alt(long size)
Native array allocator.
|
MultiTracker_Alt(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addTarget(GpuMat image,
Rect2d boundingBox,
Tracker tracker_algorithm) |
boolean |
addTarget(Mat image,
Rect2d boundingBox,
Tracker tracker_algorithm)
\brief Add a new target to a tracking-list and initialize the tracker with a known bounding box that surrounded the target
|
boolean |
addTarget(UMat image,
Rect2d boundingBox,
Tracker tracker_algorithm) |
Rect2dVector |
boundingBoxes()
\brief Bounding Boxes list for Multi-Object-Tracker
|
MultiTracker_Alt |
boundingBoxes(Rect2dVector setter) |
ScalarVector |
colors()
\brief List of randomly generated colors for bounding boxes display
|
MultiTracker_Alt |
colors(ScalarVector setter) |
MultiTracker_Alt |
position(long position) |
int |
targetNum()
\brief Current number of targets in tracking-list
|
MultiTracker_Alt |
targetNum(int setter) |
TrackerVector |
trackers()
\brief Trackers list for Multi-Object-Tracker
|
MultiTracker_Alt |
trackers(TrackerVector setter) |
boolean |
update(GpuMat image) |
boolean |
update(Mat image)
\brief Update all trackers from the tracking-list, find a new most likely bounding boxes for the targets
|
boolean |
update(UMat image) |
address, 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, zero
public MultiTracker_Alt(Pointer p)
Pointer.Pointer(Pointer)
.public MultiTracker_Alt(long size)
Pointer.position(long)
.public MultiTracker_Alt()
public MultiTracker_Alt position(long position)
@Cast(value="bool") public boolean addTarget(@ByVal Mat image, @Const @ByRef Rect2d boundingBox, @opencv_core.Ptr @ByVal Tracker tracker_algorithm)
image
- The initial frameboundingBox
- The initial bounding box of targettracker_algorithm
- Multi-tracker algorithm
@Cast(value="bool") public boolean addTarget(@ByVal UMat image, @Const @ByRef Rect2d boundingBox, @opencv_core.Ptr @ByVal Tracker tracker_algorithm)
@Cast(value="bool") public boolean addTarget(@ByVal GpuMat image, @Const @ByRef Rect2d boundingBox, @opencv_core.Ptr @ByVal Tracker tracker_algorithm)
@Cast(value="bool") public boolean update(@ByVal Mat image)
image
- The current frame
public int targetNum()
public MultiTracker_Alt targetNum(int setter)
@ByRef public TrackerVector trackers()
public MultiTracker_Alt trackers(TrackerVector setter)
@ByRef public Rect2dVector boundingBoxes()
public MultiTracker_Alt boundingBoxes(Rect2dVector setter)
@ByRef public ScalarVector colors()
public MultiTracker_Alt colors(ScalarVector setter)
Copyright © 2020. All rights reserved.