in reply to Re: Re: Pixel by pixel reading of imagesin thread Pixel by pixel reading of images
Luma (gray value) = 0.299*Red + 0.587*Green + 0.114*Blue
Reference: Keith Jack, Video Demystified, 2nd Ed. (HighText Publications)