@Namespace(value="cv") @NoOffset @Properties(inherit=opencv_tracking.class) public class TrackerSamplerPF extends TrackerSamplerAlgorithm
In principle, it can be thought of as performing some sort of optimization (and indeed, this tracker uses opencv's optim module), where tracker seeks to find the rectangle in given frame, which is the most *"similar"* to the initial rectangle (the one, given through the constructor).
The optimization performed is stochastic and somehow resembles genetic algorithms, where on each new image received (submitted via TrackerSamplerPF::sampling()) we start with the region bounded by boundingBox, then generate several "perturbed" boxes, take the ones most similar to the original. This selection round is repeated several times. At the end, we hope that only the most promising box remaining, and these are combined to produce the subrectangle of image, which is put as a sole element in array sample.
It should be noted, that the definition of "similarity" between two rectangles is based on comparing their histograms. As experiments show, tracker is *not* very succesfull if target is assumed to strongly change its dimensions.
Modifier and Type | Class and Description |
---|---|
static class |
TrackerSamplerPF.Params
\brief This structure contains all the parameters that can be varied during the course of sampling
algorithm.
|
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
TrackerSamplerPF(Mat chosenRect) |
TrackerSamplerPF(Mat chosenRect,
TrackerSamplerPF.Params parameters)
\brief Constructor
|
TrackerSamplerPF(Pointer p)
Pointer cast constructor.
|
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, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zero
public TrackerSamplerPF(Pointer p)
Pointer.Pointer(Pointer)
.public TrackerSamplerPF(@Const @ByRef Mat chosenRect, @Const @ByRef(nullValue="cv::TrackerSamplerPF::Params()") TrackerSamplerPF.Params parameters)
chosenRect
- Initial rectangle, that is supposed to contain target we'd like to track.parameters
- Copyright © 2020. All rights reserved.