Main Page   Class Hierarchy   Alphabetical List   Compound List   Compound Members  

prapi::MultiFeatureHistogram::VQ Class Reference

#include <Histogram.h>

Inheritance diagram for prapi::MultiFeatureHistogram::VQ:

prapi::MultiFeatureHistogram::LayerCombiner List of all members.

Detailed Description

The VQ combiner uses a VectorQuantizer to get a bin index for each multi-feature pixel.

In fact, this type of a combiner is not strictly necessary as one could quantize the layered matrix prior to making the histogram. It is provided to allow easy implementation of different types of histograms. Please note that in most applications, this type of a combiner is a massive performance hog.


Public Methods

 VQ (const VectorQuantizer &quantizer)
 Create a new VQ combiner with the given vector quantizer.

virtual void modifyHistogram (const List< int > &pixelValues, List< int > &histogram) const
 Modify the histogram.

virtual int getHistogramLength () const
 Get the length of the histogram this combiner will produce.


Member Function Documentation

virtual void prapi::MultiFeatureHistogram::VQ::modifyHistogram const List< int > &    pixelValues,
List< int > &    histogram
const [inline, virtual]
 

Modify the histogram.

Parameters:
pixelValues  a list of integers representing the quantized feature values for each channel.
histogram  the histogram to modify according to the pixel values.

Implements prapi::MultiFeatureHistogram::LayerCombiner.


The documentation for this class was generated from the following file:
Documentation generated on 11.09.2003 with Doxygen.
The documentation is copyrighted material.
Copyright © Topi Mäenpää 2003. All rights reserved.