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
Afficher le fichier Open project: accord-net/framework Class Usage Examples

Méthodes publiques

Méthode Description
YCbCrExtractChannel ( ) : System

Initializes a new instance of the YCbCrExtractChannel class.

YCbCrExtractChannel ( short channel ) : System

Initializes a new instance of the YCbCrExtractChannel class.

Méthodes protégées

Méthode Description
ProcessFilter ( UnmanagedImage sourceData, UnmanagedImage destinationData ) : void

Process the filter on the specified image.

Method Details

ProcessFilter() protected méthode

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

YCbCrExtractChannel() public méthode

Initializes a new instance of the YCbCrExtractChannel class.
public YCbCrExtractChannel ( ) : System
Résultat System

YCbCrExtractChannel() public méthode

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