@Namespace(value="cv") @NoOffset @Properties(inherit=opencv_tracking.class) public class TrackerSampler extends Pointer
\cite AAM Sampling e Labeling. See table I and section III B
TrackerSampler is an aggregation of TrackerSamplerAlgorithm
TrackerSamplerAlgorithm
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
TrackerSampler()
\brief Constructor
|
TrackerSampler(long size)
Native array allocator.
|
TrackerSampler(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addTrackerSamplerAlgorithm(BytePointer trackerSamplerAlgorithmType)
\brief Add TrackerSamplerAlgorithm in the collection.
|
boolean |
addTrackerSamplerAlgorithm(String trackerSamplerAlgorithmType) |
boolean |
addTrackerSamplerAlgorithm(TrackerSamplerAlgorithm sampler)
\overload
|
StringTrackerSamplerAlgorithmPairVector |
getSamplers()
\brief Return the collection of the TrackerSamplerAlgorithm
|
MatVector |
getSamples()
\brief Return the samples from all TrackerSamplerAlgorithm, \cite AAM Fig.
|
TrackerSampler |
position(long position) |
void |
sampling(Mat image,
Rect boundingBox)
\brief Computes the regions starting from a position in an 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 TrackerSampler(Pointer p)
Pointer.Pointer(Pointer)
.public TrackerSampler(long size)
Pointer.position(long)
.public TrackerSampler()
public TrackerSampler position(long position)
public void sampling(@Const @ByRef Mat image, @ByVal Rect boundingBox)
image
- The current frameboundingBox
- The bounding box from which regions can be calculated@Const @ByRef public StringTrackerSamplerAlgorithmPairVector getSamplers()
@Const @ByRef public MatVector getSamples()
@Cast(value="bool") public boolean addTrackerSamplerAlgorithm(@opencv_core.Str BytePointer trackerSamplerAlgorithmType)
trackerSamplerAlgorithmType
- The TrackerSamplerAlgorithm name
The modes available now: - "CSC" -- Current State Center - "CS" -- Current State - "PF" -- Particle Filtering
Example TrackerSamplerAlgorithm::addTrackerSamplerAlgorithm : :
TrackerSamplerCSC::Params CSCparameters;
Ptr<TrackerSamplerAlgorithm> CSCSampler = new TrackerSamplerCSC( CSCparameters );
if( !sampler->addTrackerSamplerAlgorithm( CSCSampler ) )
return false;
//or add CSC sampler with default parameters
//sampler->addTrackerSamplerAlgorithm( "CSC" );
\note If you use the second method, you must initialize the TrackerSamplerAlgorithm@Cast(value="bool") public boolean addTrackerSamplerAlgorithm(@opencv_core.Str String trackerSamplerAlgorithmType)
@Cast(value="bool") public boolean addTrackerSamplerAlgorithm(@opencv_core.Ptr @ByVal TrackerSamplerAlgorithm sampler)
sampler
- The TrackerSamplerAlgorithmCopyright © 2020. All rights reserved.