boost::gil::fill_histogram
fill_histogram overloads
Synopses
Declared in <boost/gil/histogram.hpp>
Overload this function to provide support for boost::gil::histogram or any other external histogram
template<
typename SrcView,
typename Container>
void
fill_histogram(
SrcView const&,
Container&);
Overload for std::vector of fill_histogram
template<
typename SrcView,
typename T>
void
fill_histogram(
SrcView const& srcview,
std::vector<T>& histogram,
bool accumulate = false);
Overload for std::array of fill_histogram
template<
typename SrcView,
typename T,
std::size_t N>
void
fill_histogram(
SrcView const& srcview,
std::array<T, N>& histogram,
bool accumulate = false);
Overload for std::map of fill_histogram
template<
typename SrcView,
typename T1,
typename T2>
void
fill_histogram(
SrcView const& srcview,
std::map<T1, T2>& histogram,
bool accumulate = false);
Overload version of fill_histogram
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);
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