The filter filters pixels inside/outside of specified RGB color range - it keeps pixels with colors inside/outside of specified range and fills the rest with
The filter accepts 24 and 32 bpp color images for processing.
Sample usage:
// create filter ColorFiltering filter = new ColorFiltering( ); // set color ranges to keep filter.Red = new IntRange( 100, 255 ); filter.Green = new IntRange( 0, 75 ); filter.Blue = new IntRange( 0, 75 ); // apply the filter filter.ApplyInPlace( image );
Initial image:
Result image: