Grayscale image using BT709 algorithm.

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

Syntax

C#
public static readonly Grayscale BT709

Remarks

The instance uses BT709 algorithm to convert color image to grayscale. The conversion coefficients are:

  • Red: 0.2125;
  • Green: 0.7154;
  • Blue: 0.0721.

Sample usage:

CopyC#
// apply the filter
Bitmap grayImage = Grayscale.CommonAlgorithms.BT709.Apply( image );

See Also