@Namespace(value="cv") @Properties(inherit=opencv_tracking.class) public class TrackerTargetState extends Pointer
See \cite AAM \hat{x}^{i}_{k}
all the states candidates.
Inherits this class with your Target state, In own implementation you can add scale variation, width, height, orientation, etc.
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
TrackerTargetState()
Default native constructor.
|
TrackerTargetState(long size)
Native array allocator.
|
TrackerTargetState(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getTargetHeight()
\brief Get the height of the target
|
Point2f |
getTargetPosition()
\brief Get the position
|
int |
getTargetWidth()
\brief Get the width of the target
|
TrackerTargetState |
position(long position) |
void |
setTargetHeight(int height)
\brief Set the height of the target
|
void |
setTargetPosition(Point2f _position)
\brief Set the position
|
void |
setTargetWidth(int width)
\brief Set the width of the target
|
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 TrackerTargetState()
public TrackerTargetState(long size)
Pointer.position(long)
.public TrackerTargetState(Pointer p)
Pointer.Pointer(Pointer)
.public TrackerTargetState position(long position)
@ByVal public Point2f getTargetPosition()
public void setTargetPosition(@Const @ByRef Point2f _position)
position
- The positionpublic int getTargetWidth()
public void setTargetWidth(int width)
width
- The width of the targetpublic int getTargetHeight()
public void setTargetHeight(int height)
height
- The height of the targetCopyright © 2020. All rights reserved.