Basically I am trying to find the brightness of all pixels in a bitmap image. The images I am using are 24 bit bitmap images and I am not allow to use function GetBrightness(). I am getting the RGB value of the pixels, I am wondering if the RGB value is also the brightness of the pixel or can anyone recommend a method of getting the pixel brightness of a grayscale pixel?
Thanks
There are multiple methods for converting to grayscale: http://www.johndcook.com/blog/2009/08/24/algorithms-convert-color-grayscale/
I have used the
0.21 R + 0.72 G + 0.07 B
method with success. This will give you a number (between 0-255) that is the grayscale value.