@Namespace(value="cv") @NoOffset @Properties(inherit=opencv_tracking.class) public class TrackerSamplerCS extends TrackerSamplerAlgorithm
Modifier and Type | Class and Description |
---|---|
static class |
TrackerSamplerCS.Params |
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Modifier and Type | Field and Description |
---|---|
static int |
MODE_CLASSIFY
enum cv::TrackerSamplerCS::
|
static int |
MODE_NEGATIVE
enum cv::TrackerSamplerCS::
|
static int |
MODE_POSITIVE
enum cv::TrackerSamplerCS::
|
Constructor and Description |
---|
TrackerSamplerCS() |
TrackerSamplerCS(long size)
Native array allocator.
|
TrackerSamplerCS(Pointer p)
Pointer cast constructor.
|
TrackerSamplerCS(TrackerSamplerCS.Params parameters)
\brief Constructor
|
Modifier and Type | Method and Description |
---|---|
Rect |
getROI() |
TrackerSamplerCS |
position(long position) |
boolean |
samplingImpl(Mat image,
Rect boundingBox,
MatVector sample) |
void |
setMode(int samplingMode)
\brief Set the sampling mode of TrackerSamplerCS
|
create, create, getClassName, sampling
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 static final int MODE_POSITIVE
public static final int MODE_NEGATIVE
public static final int MODE_CLASSIFY
public TrackerSamplerCS(Pointer p)
Pointer.Pointer(Pointer)
.public TrackerSamplerCS(long size)
Pointer.position(long)
.public TrackerSamplerCS(@Const @ByRef(nullValue="cv::TrackerSamplerCS::Params()") TrackerSamplerCS.Params parameters)
parameters
- TrackerSamplerCS parameters TrackerSamplerCS::Paramspublic TrackerSamplerCS()
public TrackerSamplerCS position(long position)
public void setMode(int samplingMode)
samplingMode
- The sampling mode
The modes are:
- "MODE_POSITIVE = 1" -- for the positive sampling - "MODE_NEGATIVE = 2" -- for the negative sampling - "MODE_CLASSIFY = 3" -- for the sampling in classification step
@Cast(value="bool") public boolean samplingImpl(@Const @ByRef Mat image, @ByVal Rect boundingBox, @ByRef MatVector sample)
Copyright © 2020. All rights reserved.