boost::gil::histogram_equalization

histogram_equalization overloads

Synopses

Overload for histogram equalization algorithm, takes in a single source histogram and returns the color map used for histogram equalization.

template<typename SrcKeyType>
std::map<SrcKeyType, SrcKeyType>
histogram_equalization(histogram<SrcKeyType> const& src_hist);

Overload for histogram equalization algorithm, takes in both source histogram & destination histogram and returns the color map used for histogram equalization as well as transforming the destination histogram.

template<
    typename SrcKeyType,
    typename DstKeyType>
std::map<SrcKeyType, DstKeyType>
histogram_equalization(
    histogram<SrcKeyType> const& src_hist,
    histogram<DstKeyType>& dst_hist);

Overload for histogram equalization algorithm, takes in both source & destination image views and histogram equalizes the input image.

template<
    typename SrcView,
    typename DstView>
void
histogram_equalization(
    SrcView const& src_view,
    DstView const& dst_view,
    std::size_t bin_width = 1,
    bool mask = false,
    std::vector<std::vector<bool>> src_mask = {});

Template Parameters

Name

Description

SrcKeyType

Key Type of input histogram

DstKeyType

Key Type of output histogram

Parameters

Name

Description

src_hist

INPUT Input source histogram

dst_hist

OUTPUT Output histogram

src_view

INPUT source 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

Created with MrDocs