Once you have uploaded the image to Matlab, it will be presented as a matrix. for example
>> A = imread('peppers.png'); >> size(A) ans = 384 512 3
A is a 384 by 512 by 3 array representing an RGB image, where, for example, A(:,:,1) is the red channel
Jonas
source share