#include <descriptor.h>
Inheritance diagram for fl::DescriptorColorHistogram2D:

Public Methods | |
| DescriptorColorHistogram2D (int width=5, float supportRadial=4.2f) | |
| DescriptorColorHistogram2D (std::istream &stream) | |
| void | initialize () |
| void | clear () |
| Zero out histogram in preparation for a round of binning. | |
| void | addToHistogram (const Image &image, const int x, const int y) |
| An inline used by both add() and value(). Contains the common code for incrementing color bins. | |
| void | add (const Image &image, int x, int y) |
| Add color of image(x,y) to histogram. | |
| Vector< float > | finish () |
| Extract feature vector from the histogram. Only returns values for bins that map to a valid RGB color. See member "valid" below. | |
| virtual Vector< float > | value (const Image &image, const PointAffine &point) |
| Returns a vector of floats that describe the image patch near the interest point. | |
| virtual Vector< float > | value (const Image &image) |
| Describe entire region that has non-zero alpha values. Descriptor may treat all non-zero alpha values the same, or use them to weight the pixels. This method is only available in Descriptors that don't require a specific point of reference. IE: a spin image must have a central point, so it can't implement this method. | |
| virtual Image | patch (const Vector< float > &value) |
| Return a graphical representation of the descriptor. Preferrably an image patch that would stimulate this descriptor to return the given value. | |
| virtual Comparison * | comparison () |
| Return an instance of the recommended Comparison for feature vectors from this type of Descriptor. Caller is responsible to destroy instance. | |
| virtual void | read (std::istream &stream) |
| virtual void | write (std::ostream &stream, bool withName=true) |
Public Attributes | |
| int | width |
| Number of bins in the U and V dimensions. | |
| Matrix< bool > | valid |
| Stores true for every bin that translates to a valid RGB color. | |
| Matrix< float > | histogram |
| Working histogram. Forces this Descriptor object to be single threaded. | |
|
||||||||||||
|
|
|
|
|
|
||||||||||||||||
|
Add color of image(x,y) to histogram.
|
|
||||||||||||||||
|
An inline used by both add() and value(). Contains the common code for incrementing color bins.
|
|
|
Zero out histogram in preparation for a round of binning.
|
|
|
Return an instance of the recommended Comparison for feature vectors from this type of Descriptor. Caller is responsible to destroy instance.
Reimplemented from fl::Descriptor. |
|
|
Extract feature vector from the histogram. Only returns values for bins that map to a valid RGB color. See member "valid" below.
|
|
|
|
|
|
Return a graphical representation of the descriptor. Preferrably an image patch that would stimulate this descriptor to return the given value.
Implements fl::Descriptor. |
|
|
Reimplemented from fl::Descriptor. |
|
|
Describe entire region that has non-zero alpha values. Descriptor may treat all non-zero alpha values the same, or use them to weight the pixels. This method is only available in Descriptors that don't require a specific point of reference. IE: a spin image must have a central point, so it can't implement this method.
Reimplemented from fl::Descriptor. |
|
||||||||||||
|
Returns a vector of floats that describe the image patch near the interest point.
Implements fl::Descriptor. |
|
||||||||||||
|
Reimplemented from fl::Descriptor. |
|
|
Working histogram. Forces this Descriptor object to be single threaded.
|
|
|
Stores true for every bin that translates to a valid RGB color.
|
|
|
Number of bins in the U and V dimensions.
|
1.2.18