boost::gil::fill_histogram
Overload version of fill_histogram
Synopsis
Declared in <boost/gil/histogram.hpp>
template<
std::size_t Dimensions...,
typename SrcView,
typename... T>
void
fill_histogram(
SrcView const& srcview,
histogram<T...>& hist,
std::size_t bin_width = 1,
bool accumulate = false,
bool sparsefill = true,
bool applymask = false,
std::vector<std::vector<bool>> mask = {},
histogram<T...>::key_type lower = (detail::tuple_limit<typename histogram<T...>::key_type>::min)(),
histogram<T...>::key_type upper = (detail::tuple_limit<typename histogram<T...>::key_type>::max)(),
bool setlimits = false);
Description
Takes a third argument to determine whether to clear container before filling. For eg, when there is a need to accumulate the histograms do
fill_histogram(view(img), hist, true);
Parameters
Name |
Description |
srcview |
Input Input image view |
hist |
Output Histogram to be filled |
bin_width |
Input Specify the bin widths for the histogram. |
accumulate |
Input Specify whether to accumulate over the values already present in h (default = false) |
sparsaefill |
Input Specify whether to have a sparse or continuous histogram (default = true) |
applymask |
Input Specify if image mask is to be specified |
mask |
Input Mask as a 2D vector. Used only if prev argument specified |
lower |
Input Lower limit on the values in histogram (default numeric_limit::min() on axes) |
upper |
Input Upper limit on the values in histogram (default numeric_limit::max() on axes) |
setlimits |
Input Use specified limits if this is true (default is false) |
Created with MrDocs