What are the 3 dimensions of an RGB image in MATLAB?
[r,c,d] = size(rgbImage);
In that line of code:
ris the number of rows in the image (i.e. the size of the first dimension).cis the number of columns in the image (i.e. the size of the second dimension).dcan be referred to as the "depth" or "planes" of the image (i.e. the size of the third dimension).
For an RGB (or Truecolor) image, d is always 3. The first plane contains the degree of red in each pixel of the image,
the second plane contains the degree of green in each pixel of the image, and the third plane contains the degree of
blue in each pixel of the image.
[From]http://stackoverflow.com/questions/2612113/what-are-the-3-dimensions-of-an-rgb-image-in-matlab

浙公网安备 33010602011771号