Channel rgb2gray - Set the amount that each channel contributes to the grayscale image. This is an rgb image, and not photoshop grayscale mode. A frequently used ratio for an approximation of luminance is 30% red, 59% green, and 11% blue, equivalent to filter values of 77 for red, 151 for green, and 28 for blue.