C# Class Accord.Imaging.Filters.GrayscaleToRGB

Convert grayscale image to RGB.

The filter creates color image from specified grayscale image initializing all RGB channels to the same value - pixel's intensity of grayscale image.

The filter accepts 8 bpp grayscale images and produces 24 bpp RGB image.

Sample usage:

// create filter GrayscaleToRGB filter = new GrayscaleToRGB( ); // apply the filter Bitmap rgbImage = filter.Apply( image );
Inheritance: BaseFilter
Mostrar archivo Open project: accord-net/framework Class Usage Examples

Public Methods

Method Description
GrayscaleToRGB ( ) : System

Initializes a new instance of the GrayscaleToRGB class.

Protected Methods

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

Process the filter on the specified image.

Method Details

GrayscaleToRGB() public method

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

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