What exactly does the imread() function read?

Does the imread() function read the value of each pixel of the specified image? Or something else?

 Respuesta aceptada

Image Analyst
Image Analyst el 9 de Abr. de 2018

0 votos

It gets the value of all the pixels and puts them into a 2-D monochrome array or a 3-D color array.

2 comentarios

Guillaume
Guillaume el 9 de Abr. de 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 el 9 de Abr. de 2018
Editada: Walter Roberson el 11 de Abr. de 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.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Convert Image Type en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 9 de Abr. de 2018

Editada:

el 11 de Abr. de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by