boost::gil::threshold_binary
threshold_binary overloads
Synopses
Applies fixed threshold to each pixel of image view. Performs image binarization by thresholding channel value of each pixel of given image view. This variant of threshold_binary automatically deduces maximum value for each channel of pixel based on channel type. If direction is regular, values greater than threshold_value will be set to maximum numeric limit of channel else 0. If direction is inverse, values greater than threshold_value will be set to 0 else maximum numeric limit of channel.
template<
typename SrcView,
typename DstView>
void
threshold_binary(
SrcView const& src_view,
DstView const& dst_view,
channel_type<DstView>::type threshold_value,
threshold_direction direction = threshold_direction::regular);
Applies fixed threshold to each pixel of image view. Performs image binarization by thresholding channel value of each pixel of given image view.
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