简体   繁体   中英

reading a image file with imread in matlab gives what kind of representation?

I am newbie on matlab and doing some little image processing tasks. I am using imread to read some images but I don't get after reading the image what kind of representation is given. Is it a binary representation of histogram of the image?

If someone might describe me I'll be appreciated :)

From imread :

The return value A is an array containing the image data. If the file contains a grayscale image, A is an M-by-N array. If the file contains a truecolor image, A is an M-by-N-by-3 array. For TIFF files containing color images that use the CMYK color space, A is an M-by-N-by-4 array. See TIFF in the Format-Specific Information section for more information.

So it's an array, as your image also is an array of pixels.

Btw: it doesn't hurt to try things out for yourself...

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