MATLAB: Return value of rgb2gray

Image Processing Toolboxmatricesmatrixreturn valuergb2gray

Hi,
For a given image, does rgb2gray return a mxnx3 matrix or mxn when it eliminates hue and saturation? The documentation is not clear on this.
Thanks

Best Answer

It returns an MxN numeric array.
Related Question