#include <convolve.h>
Inheritance diagram for fl::IntensityHistogram:

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. | |
|
|
|
|
||||||||||||||||
|
|
|
||||||||||||||||
|
For each bin, print: {start of range | center of range} {count | percent of total}.
|
|
|
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. |
|
|
Add up all the counts.
|
|
|
The counts for each of the bins.
|
|
|
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.
|
1.2.18