#include <Histogram.h>
Inheritance diagram for prapi::MultiFeatureHistogram:

Each matrix layer represents a quantized feature, and the features can be combined e.g. by producing a multi-dimensional histogram.
Public Methods | |
| MultiFeatureHistogram (const LayerCombiner &combiner) | |
| Create a new MultiFeatureHistogram feature extractor with the given layer combiner. | |
| List< int > | getFeatureVector (const List< Matrix< int > > &lst) throw (FeatureExtractionException&) |
| Generate the histogram. | |
|
|
Generate the histogram. This methods loops through the pixels on the first image in lst. It constructs a vector by collecting all corresponding pixels, i.e. pixels with the same coordinates, from all images, in the order they appear in lst. For each constructed vector, the modifyHistogram method of the internal layer combiner is called. Finally, a histogram is returned. Note that the images in lst must be of exactly the same size. Implements prapi::FeatureExtractor< int, List< Matrix< int > > >. |