converts RGB image to gray level image
Image = RGB2Gray(RGB);
3D matrix of type uint8, uint16, uint32 or double
2D matrix of the same type as RGB
This function converts a color image to a gray level image.
global IPD_PATH; RGB = ReadImage(IPD_PATH + 'demos\teaset.png'); Image = RGB2Gray(RGB); figure(); ShowImage(Image, 'Gray Level Image');