Assembly: AForge.Imaging (in AForge.Imaging.dll) Version: 220.127.116.11 (18.104.22.168)
public class ExtractNormalizedRGBChannel : BaseFilter
Extracts specified normalized RGB channel of color image and returns it as grayscale image.
r = R / (R + G + B ), g = G / (R + G + B ), b = B / (R + G + B ),
The filter accepts 24, 32, 48 and 64 bpp color images and produces 8 (if source is 24 or 32 bpp image) or 16 (if source is 48 or 64 bpp image) bpp grayscale image.
// create filter ExtractNormalizedRGBChannel filter = new ExtractNormalizedRGBChannel( RGB.G ); // apply the filter Bitmap channelImage = filter.Apply( image );