MATLAB: I use function size(a), 1200*1920*3. what 3 means in this

rgb imagesize(a)

where a is my image matrix, i got result as 1200*1920*3. what 3 means in this?

Best Answer

It means there are 3 color channels. If you use only 2 outputs, then the second one is hte number of columns time the number of color channels. See Steve's blog for more info: http://blogs.mathworks.com/steve/2011/03/29/even-more-information-about-the-size-function/
[rows, columns, numberOfColorChannels= = size(rgbImage);