vigra - UserRangeHistogram< BinCount > Class Template Reference

[ VIGRA Homepage | Function Index | Class Index | Namespaces | File List | Main Page ]

| UserRangeHistogram< BinCount > Class Template Reference |

Histogram where user provides bounds for linear range mapping from values to indices. More...

`#include <vigra/accumulator.hxx>`

List of all members.

## Detailed Description

### template<int BinCount>
class vigra::acc::UserRangeHistogram< BinCount >

Histogram where user provides bounds for linear range mapping from values to indices.

- If BinCount != 0, the return type of the accumulator is TinyVector<double, BinCount> .
- If BinCount == 0, the return type of the accumulator is MultiArray<1, double> . BinCount can be set by calling getAccumulator<UserRangeHistogram<0> >(acc_chain).setBinCount(bincount).
- Bounds for the mapping (min/max) must be set before seeing data by calling getAccumulator<UserRangeHistogram<BinCount> >.setMinMax(min, max).
- Options can also be passed to the accumulator chain via an instance of HistogramOptions .
- Works in pass 1, operator+=() is supported (merging) if both histograms have the same data mapping.
- Outliers can be accessed via getAccumulator<...>(a).left_outliers and getAccumulator<...>(a).right_outliers.
- Note that histogram options (for all histograms in the accumulator chain) can also be set by passing an instance of HistogramOptions to the accumulator chain via acc_chain.setHistogramOptions().

The documentation for this class was generated from the following file:

- vigra/accumulator.hxx

© Ullrich Köthe (ullrich.koethe@iwr.uni-heidelberg.de) Heidelberg Collaboratory for Image Processing, University of Heidelberg, Germany | html generated using doxygen and Python vigra 1.9.0 (Tue Nov 6 2012)