How to make a truecolor tif from arrays

8 visualizaciones (últimos 30 días)
Stephen Devlin
Stephen Devlin el 21 de Ag. de 2018
Comentada: Yuvaraj Venkataswamy el 21 de Ag. de 2018
Hi, I want to make a tif image, truecolor MxNx3, from arrays. I can see that it is possible to do this where each color is of a value from 0 to 1 but when I read in a tif image I see the uint8 0 to 255 values. I want to understand tifs better and want to be able to isolate a single pixel and see its value(s), and relate that to the values for the same pixel when the tif is split into the three RGB layers (have I worded this badly?).
  2 comentarios
Jan
Jan el 21 de Ag. de 2018
The question is not clear yet. What are your inputs? "From arrays" is not clear enough.
Colors can be represented by double values in the range [0,1] or UINT8 values oc [0, 255]. You can simply convert between the two methods by a division and casting to the wanted class.
Stephen Devlin
Stephen Devlin el 21 de Ag. de 2018
Hi Jan, I wanted to generate some arrays/matrices and play with some aspects of tifs. All the arrays for this purpose are self generated, they have not come from an image.

Iniciar sesión para comentar.

Respuesta aceptada

Yuvaraj Venkataswamy
Yuvaraj Venkataswamy el 21 de Ag. de 2018
  2 comentarios
Stephen Devlin
Stephen Devlin el 21 de Ag. de 2018
Thankyou Yuvaraj.
Yuvaraj Venkataswamy
Yuvaraj Venkataswamy el 21 de Ag. de 2018
You are welcome

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Images en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by