C# Class Accord.Imaging.Filters.YCbCrExtractChannel

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
Show file Open project: accord-net/framework Class Usage Examples

Public Methods

Method Description
YCbCrExtractChannel ( ) : System

Initializes a new instance of the YCbCrExtractChannel class.

YCbCrExtractChannel ( short channel ) : System

Initializes a new instance of the YCbCrExtractChannel class.

Protected Methods

Method Description
ProcessFilter ( UnmanagedImage sourceData, UnmanagedImage destinationData ) : void

Process the filter on the specified image.

Method Details

ProcessFilter() protected method

Process the filter on the specified image.
protected ProcessFilter ( UnmanagedImage sourceData, UnmanagedImage destinationData ) : void
sourceData UnmanagedImage Source image data.
destinationData UnmanagedImage Destination image data.
return void

YCbCrExtractChannel() public method

Initializes a new instance of the YCbCrExtractChannel class.
public YCbCrExtractChannel ( ) : System
return System

YCbCrExtractChannel() public method

Initializes a new instance of the YCbCrExtractChannel class.
public YCbCrExtractChannel ( short channel ) : System
channel short YCbCr channel to extract.
return System