Click or drag to resize
Accord.NET (logo)

GrayscaleCommonAlgorithmsBT709 Field

Grayscale image using BT709 algorithm.

Namespace:  Accord.Imaging.Filters
Assembly:  Accord.Imaging (in Accord.Imaging.dll) Version: 3.8.0
Syntax
public static readonly Grayscale BT709
Request Example View Source

Field Value

Type: Grayscale
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:

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