Represents a modality operating over an image pyramid. More...
#include <objdetect.hpp>
Classes | |
struct | Candidate |
Candidate feature with a score. More... | |
Public Member Functions | |
virtual | ~QuantizedPyramid () |
virtual void | quantize (Mat &dst) const =0 |
Compute quantized image at current pyramid level for online detection. More... | |
virtual bool | extractTemplate (Template &templ) const =0 |
Extract most discriminant features at current pyramid level to form a new template. More... | |
virtual void | pyrDown ()=0 |
Go to the next pyramid level. More... | |
Static Protected Member Functions | |
static void | selectScatteredFeatures (const std::vector< Candidate > &candidates, std::vector< Feature > &features, size_t num_features, float distance) |
Choose candidate features so that they are not bunched together. More... | |
Represents a modality operating over an image pyramid.
|
virtual |
Compute quantized image at current pyramid level for online detection.
[out] | dst | The destination 8-bit image. For each pixel at most one bit is set, representing its classification. |
|
pure virtual |
Extract most discriminant features at current pyramid level to form a new template.
[out] | templ | The new template. |
|
pure virtual |
Go to the next pyramid level.
|
staticprotected |
Choose candidate features so that they are not bunched together.
[in] | candidates | Candidate features sorted by score. |
[out] | features | Destination vector of selected features. |
[in] | num_features | Number of candidates to select. |
[in] | distance | Hint for desired distance between features. |