Optimized Bayer fileter image processing routine.

Namespace:  AForge.Imaging.Filters
Assembly:  AForge.Imaging (in AForge.Imaging.dll) Version: 2.2.5.0 (2.2.5.0)

Syntax

C#
public class BayerFilterOptimized : BaseFilter

Remarks

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

This class does all the same as BayerFilter class. However this version is optimized for some well known patterns defined in BayerPattern enumeration. Also this class processes images with even width and height only. Image size must be at least 2x2 pixels.

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

Sample usage:

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

Inheritance Hierarchy

System..::.Object
  AForge.Imaging.Filters..::.BaseFilter
    AForge.Imaging.Filters..::.BayerFilterOptimized

See Also