boost::gil::threshold_binary
Applies fixed threshold to each pixel of image view. Performs image binarization by thresholding channel value of each pixel of given image view.
Synopsis
template<
typename SrcView,
typename DstView>
void
threshold_binary(
SrcView const& src_view,
DstView const& dst_view,
channel_type<DstView>::type threshold_value,
channel_type<DstView>::type max_value,
threshold_direction direction = threshold_direction::regular);
Parameters
Name |
Description |
src_view |
‐ TODO |
dst_view |
‐ TODO |
threshold_value |
‐ TODO |
max_value |
‐ TODO |
direction |
‐ if regular, values greater than threshold_value are set to max_value else set to 0; if inverse, values greater than threshold_value are set to 0 else set to max_value. |
Created with MrDocs