Borrar filtros
Borrar filtros

how to display an image from a matrix in matlab?

42 visualizaciones (últimos 30 días)
BANI tita
BANI tita el 24 de Dic. de 2012
Hello, I am looking for the matlab function that allows me to transfer a confusion matrix has a picture, thank you

Respuestas (2)

Image Analyst
Image Analyst el 24 de Dic. de 2012
Use image(), or imshow() (in the Image Processing Toolbox). If it's a floating point image, you need to use imshow(yourImage, []).
  3 comentarios
Walter Roberson
Walter Roberson el 24 de Dic. de 2012
There is no difference to MATLAB between an "image matrix" and a "data matrix". It is all just data. Use imagesc(YourMatrix) or imshow(YourMatrix,[])
BANI tita
BANI tita el 25 de Dic. de 2012
thank you

Iniciar sesión para comentar.


Maurizio De Pitta'
Maurizio De Pitta' el 25 de Dic. de 2012
imagesc(yourmatrix)
will solve your issue.
Cheers,
M
  1 comentario
Image Analyst
Image Analyst el 25 de Dic. de 2012
By default, imagesc applies some weird colormap that's almost never what you want. Then you have to apply the correct colormap, like gray or whatever. That's why I avoid it and use imshow instead, which applies no colormap - it's just the normal gray scale colormap for a gray scale image.

Iniciar sesión para comentar.

Categorías

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

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by