Main Page   Class Hierarchy   Alphabetical List   Compound List   Compound Members  

prapi::IntegerHistogram Class Reference

#include <Histogram.h>

Inheritance diagram for prapi::IntegerHistogram:

prapi::FeatureExtractor< int, Matrix< int > > Object List of all members.

Detailed Description

Produces a histogram from any matrix that holds integers.


Public Methods

 IntegerHistogram (int length=0)
 Create a new IntegerHistogram feature extractor with the maximum length of histogram set to length.

List< int > getFeatureVector (const Matrix< int > &mat) throw (FeatureExtractionException&)
 Create the histogram.

void setLength (int length)
 Set the length of the produced histograms.

int getLength (void) const
 Get the length of the histograms this extractor produces.


Constructor & Destructor Documentation

prapi::IntegerHistogram::IntegerHistogram int    length = 0 [inline]
 

Create a new IntegerHistogram feature extractor with the maximum length of histogram set to length.

If the length is not set, then the length of the produced histograms will equal to maximum value found in an matrix plus one.


Member Function Documentation

void prapi::IntegerHistogram::setLength int    length [inline]
 

Set the length of the produced histograms.

0 = automatic. If a value larger than length is found in the matrix, the length of the histogram will exceed length.


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