boost::gil::threshold_truncate
Applies truncating threshold to each pixel of image view. Takes an image view and performs truncating threshold operation on each channel. If mode is threshold and direction is regular: values greater than threshold_value will be set to threshold_value else no change If mode is threshold and direction is inverse: values less than or equal to threshold_value will be set to threshold_value else no change If mode is zero and direction is regular: values less than or equal to threshold_value will be set to 0 else no change If mode is zero and direction is inverse: values more than threshold_value will be set to 0 else no change
Synopsis
template<
typename SrcView,
typename DstView>
void
threshold_truncate(
SrcView const& src_view,
DstView const& dst_view,
channel_type<DstView>::type threshold_value,
threshold_truncate_mode mode = threshold_truncate_mode::threshold,
threshold_direction direction = threshold_direction::regular);
Parameters
Name |
Description |
mode |
TODO |
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