RGB2GRAY Convert RGB image or colormap to grayscale.
RGB2GRAY converts RGB images to grayscale by eliminating the
hue and saturation information while retaining the
luminance.
I = RGB2GRAY(RGB) converts the truecolor image RGB to the
grayscale intensity image I.