简体   繁体   中英

Matlab - size of image

Checking size of an image in matlab using size(I) , where I expected the size to be 8X8 , I got the following:

size(I)

ans =

 8     8     3

What is 3 here? And, is my image considered an 8X8 image?

Thanks.

3 is the number of channels in the colored image. That is, red, green and blue. If you had a gray-scale image then it would be 8x8 .

Yes, your image is 8x8 , but a colored one.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM