boost::gil::histogram_matching
Overload for histogram matching algorithm, takes in both source, reference & destination image views and histogram matches the input image using the reference image.
Synopsis
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 = {});
Parameters
Name |
Description |
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