Why is imshow() not showing my image correctly?
17 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
lohit madiwal
el 4 de Feb. de 2016
Comentada: DGM
el 8 de Oct. de 2025
Good day everyone. This is the image i have.

The name of the image is white_circles. It is a .png format image.
This is my code.
im = imread('white_circles.png');
imshow(im);
This is the output.

What is happening here? When i try the same with .jpg everything works fine. Is this issue related to the format of the image or is it due to something else?
Please help me out. Thank you.
2 comentarios
Respuesta aceptada
KSSV
el 4 de Feb. de 2016
You have to use the following
[im,map] = imread('white_circles.png');
imshow(im,map);
2 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Convert Image Type 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!

