boost::gil::cumulative_histogram
Optionally overload this function with any external histogram class
Synopsis
Declared in <boost/gil/histogram.hpp>
template<typename Container>
Container
cumulative_histogram(Container const&);
Description
Cumulative histogram is calculated over any arbitrary dimensional histogram. The only tradeoff could be the runtime complexity which in the worst case would be max( #pixel_values , #bins ) * #dimensions. For single dimensional histograms the complexity has been brought down to #bins * log( #bins ) by sorting the keys and then calculating the cumulative version.
Template Parameters
Name |
Description |
Container |
Input histogram container |
Created with MrDocs