What exactly does the imread() function read?

4 vues (au cours des 30 derniers jours)
Tanish Agarwal
Tanish Agarwal le 9 Avr 2018
Does the imread() function read the value of each pixel of the specified image? Or something else?

Réponse acceptée

Image Analyst
Image Analyst le 9 Avr 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 commentaires
Guillaume
Guillaume le 9 Avr 2018
or even 4-D array for CMYK encoded TIFF images. As per Pawel link, it's all explained in the documentation.
Walter Roberson
Walter Roberson le 9 Avr 2018
Modifié(e) : Walter Roberson le 11 Avr 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.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Convert Image Type dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by