C# Class Accord.Imaging.Filters.BayerFilter

Generic Bayer fileter image processing routine.

The class implements Bayer filter routine, which creates color image out of grayscale image produced by image sensor built with Bayer color matrix.

This Bayer filter implementation is made generic by allowing user to specify used Bayer pattern. This makes it slower. For optimized version of the Bayer filter see BayerFilterOptimized class, which implements Bayer filter specifically optimized for some well known patterns.

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

Sample usage:

// create filter BayerFilter filter = new BayerFilter( ); // apply the filter Bitmap rgbImage = filter.Apply( image );

Source image:

Result image:

Inheritance: BaseFilter
Show file Open project: accord-net/framework

Public Methods

Method Description
BayerFilter ( ) : System

Initializes a new instance of the BayerFilter class.

Protected Methods

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

Process the filter on the specified image.

Method Details

BayerFilter() public method

Initializes a new instance of the BayerFilter class.
public BayerFilter ( ) : 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