boost::gil::histogram_matching
histogram_matching overloads
Synopses
Overload for histogram matching algorithm, takes in a single source histogram & reference histogram and returns the color map used for histogram matching.
template<
typename SrcKeyType,
typename RefKeyType>
std::map<SrcKeyType, SrcKeyType>
histogram_matching(
histogram<SrcKeyType> const& src_hist,
histogram<RefKeyType> const& ref_hist);
Overload for histogram matching algorithm, takes in source histogram, reference histogram & destination histogram and returns the color map used for histogram matching as well as transforming the destination histogram.
template<
typename SrcKeyType,
typename RefKeyType,
typename DstKeyType>
std::map<SrcKeyType, DstKeyType>
histogram_matching(
histogram<SrcKeyType> const& src_hist,
histogram<RefKeyType> const& ref_hist,
histogram<DstKeyType>& dst_hist);
Overload for histogram matching algorithm, takes in both source, reference & destination image views and histogram matches the input image using the reference image.
template<
typename SrcView,
typename ReferenceView,
typename DstView>
void
histogram_matching(
SrcView const& src_view,
ReferenceView const& ref_view,
DstView const& dst_view,
std::size_t bin_width = 1,
bool mask = false,
std::vector<std::vector<bool>> src_mask = {},
std::vector<std::vector<bool>> ref_mask = {});
Template Parameters
Name |
Description |
SrcKeyType |
Key Type of input histogram |
RefKeyType |
Key Type of reference histogram |
DstKeyType |
Key Type of output histogram |
Parameters
Name |
Description |
src_hist |
INPUT Input source histogram |
ref_hist |
INPUT Input reference histogram |
dst_hist |
OUTPUT Output histogram |
src_view |
INPUT source image view |
ref_view |
INPUT Reference image view |
dst_view |
OUTPUT Output image view |
bin_width |
INPUT Histogram bin width |
mask |
INPUT Specify is mask is to be used |
src_mask |
INPUT Mask vector over input image |
ref_mask |
INPUT Mask vector over reference image |
Created with MrDocs