Assembly: AForge.Imaging (in AForge.Imaging.dll) Version: 184.108.40.206 (220.127.116.11)
public class ChannelFiltering : BaseInPlacePartialFilter
The filter does color channels' filtering by clearing (filling with specified values) values, which are inside/outside of the specified value's range. The filter allows to fill certain ranges of RGB color channels with specified value.
The filter is similar to ColorFiltering, but operates with not entire pixels, but with their RGB values individually. This means that pixel itself may not be filtered (will be kept), but one of its RGB values may be filtered if they are inside/outside of specified range.
The filter accepts 24 and 32 bpp color images for processing.
// create filter ChannelFiltering filter = new ChannelFiltering( ); // set channels' ranges to keep filter.Red = new IntRange( 0, 255 ); filter.Green = new IntRange( 100, 255 ); filter.Blue = new IntRange( 100, 255 ); // apply the filter filter.ApplyInPlace( image );