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. 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.
Synopsis
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);
Parameters
Name |
Description |
direction |
Direction of image segmentation. The direction specifies which pixels are considered as corresponding to object and which pixels correspond to background. |
Created with MrDocs