Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

fl::IntensityHistogram Class Reference

#include <convolve.h>

Inheritance diagram for fl::IntensityHistogram:

fl::Filter List of all members.

Public Methods

 IntensityHistogram (const std::vector< float > &ranges)
 IntensityHistogram (float minimum, float maximum, int bins)
virtual Image filter (const Image &image)
 This could be const, but it is useful to allow filters to collect statistics. Note that such filters are not thread safe.

int total () const
 Add up all the counts.

void dump (std::ostream &stream, bool center=false, bool percent=false) const
 For each bin, print: {start of range | center of range} {count | percent of total}.


Public Attributes

std::vector< float > ranges
 The interval for bin n is [ranges[n], ranges[n+1]). However, the last bin is a fully closed interval. Bins are numbered from zero. ranges has one more entry than counts.

std::vector< int > counts
 The counts for each of the bins.


Detailed Description

An information gathering filter. Finds standard deviation of intensity values based on a given average value.


Constructor & Destructor Documentation

IntensityHistogram::IntensityHistogram const std::vector< float > &    ranges
 

IntensityHistogram::IntensityHistogram float    minimum,
float    maximum,
int    bins
 


Member Function Documentation

void IntensityHistogram::dump std::ostream &    stream,
bool    center = false,
bool    percent = false
const
 

For each bin, print: {start of range | center of range} {count | percent of total}.

Image IntensityHistogram::filter const Image   image [virtual]
 

This could be const, but it is useful to allow filters to collect statistics. Note that such filters are not thread safe.

Implements fl::Filter.

int IntensityHistogram::total  
 

Add up all the counts.


Member Data Documentation

std::vector<int> fl::IntensityHistogram::counts
 

The counts for each of the bins.

std::vector<float> fl::IntensityHistogram::ranges
 

The interval for bin n is [ranges[n], ranges[n+1]). However, the last bin is a fully closed interval. Bins are numbered from zero. ranges has one more entry than counts.


The documentation for this class was generated from the following files:
Generated on Thu Dec 9 17:13:26 2004 for fl by doxygen1.2.18