@Namespace(value="cv") @NoOffset public static class opencv_tracking.TrackerSamplerPF extends opencv_tracking.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|
\brief This structure contains all the parameters that can be varied during the course of sampling algorithm.
|Constructor and Description|
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, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, position, put, realloc, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zero
public TrackerSamplerPF(Pointer p)
public TrackerSamplerPF(@Const @ByRef opencv_core.Mat chosenRect, @Const @ByRef(nullValue="cv::TrackerSamplerPF::Params()") opencv_tracking.TrackerSamplerPF.Params parameters)
chosenRect- Initial rectangle, that is supposed to contain target we'd like to track.
Copyright © 2019. All rights reserved.