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 );
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.
// apply the filter Bitmap grayImage = Grayscale.CommonAlgorithms.RMY.Apply( image );
The instance uses Y algorithm to convert color image to grayscale. The conversion coefficients are: Red: 0.299; Green: 0.587; Blue: 0.114.
// apply the filter Bitmap grayImage = Grayscale.CommonAlgorithms.Y.Apply( image );