What exactly does the imread() function read?
4 views (last 30 days)
Show older comments
Tanish Agarwal
on 9 Apr 2018
Edited: Walter Roberson
on 11 Apr 2018
Does the imread() function read the value of each pixel of the specified image? Or something else?
Accepted Answer
Image Analyst
on 9 Apr 2018
It gets the value of all the pixels and puts them into a 2-D monochrome array or a 3-D color array.
2 Comments
Guillaume
on 9 Apr 2018
or even 4-D array for CMYK encoded TIFF images. As per Pawel link, it's all explained in the documentation.
Walter Roberson
on 9 Apr 2018
Edited: Walter Roberson
on 11 Apr 2018
I have seen some people report 4d for tiff RGBA as well.
Correction: I have seen some people report rows x columns x 4 for RGBA.
More Answers (0)
See Also
Categories
Find more on Convert Image Type in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!