Click or drag to resize
Accord.NET (logo)

GrayscaleCommonAlgorithmsRMY Field

Grayscale image using R-Y algorithm.

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

Field Value

Type: Grayscale
Remarks

The instance uses R-Y algorithm to convert color image to grayscale. The conversion coefficients are:

  • Red: 0.5;
  • Green: 0.419;
  • Blue: 0.081.

Sample usage:

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