Hi Krupal, Matlab's function rgb2gray() will transform your RGB image into a grayscale image, which is an mxn matrix, where the value at every pixel is the luminance. To transform it to binary, you can threshold this grayscale image.
Hi Krupal, Matlab's function rgb2gray() will transform your RGB image into a grayscale image, which is an mxn matrix, where the value at every pixel is the luminance. To transform it to binary, you can threshold this grayscale image.