Borrar filtros
Borrar filtros

i have a matrix of class unit8. how could i make an image using it

1 visualización (últimos 30 días)
matrix size is 35*57*3.

Respuesta aceptada

Walter Roberson
Walter Roberson el 29 de Sept. de 2013
image(YourArray)
  4 comentarios
Image Analyst
Image Analyst el 5 de Oct. de 2013
Editada: Image Analyst el 5 de Oct. de 2013
That function displays an image in a rectangle on your computer screen. It does not create a gray scale image or create any image whatsoever in a variable. Why do you say that it makes a gray scale image? You can use that function, or use imshow() instead.
Walter Roberson
Walter Roberson el 5 de Oct. de 2013
If your data is 35*57*3 then applying image() to your data will show it in as much RGB information as is present. If it looks greyscale then that is because the data itself has all three color planes equal (or nearly so.)

Iniciar sesión para comentar.

Más respuestas (1)

Image Analyst
Image Analyst el 28 de Sept. de 2013
Seems to me you already have an image. Why do you think you don't?

Categorías

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

Etiquetas

Aún no se han introducido etiquetas.

Community Treasure Hunt

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

Start Hunting!

Translated by