Extract YCbCr channel from image.

The filter extracts specified YCbCr channel of color image and returns it in the form of grayscale image.

The filter accepts 24 and 32 bpp color images and produces 8 bpp grayscale images.

Sample usage:

// create filter YCbCrExtractChannel filter = new YCbCrExtractChannel( YCbCr.CrIndex ); // apply the filter Bitmap crChannel = filter.Apply( image );
Inheritance: BaseFilter
Example #1
0
 private void SetFilter()
 {
     ImageType = ImageTypes.Rgb32bpp;
     if ((int)mode > 3)
     {
         Af.YCbCrExtractChannel newFilter = new Af.YCbCrExtractChannel();
         newFilter.Channel = (short)(mode - 4);
         imageFilter       = newFilter;
     }
     else
     {
         Af.ExtractChannel newFilter = new Af.ExtractChannel();
         newFilter.Channel = (short)mode;
         imageFilter       = newFilter;
     }
 }