Why is imshow() not showing my image correctly?
조회 수: 17 (최근 30일)
이전 댓글 표시
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
채택된 답변
KSSV
2016년 2월 4일
You have to use the following
[im,map] = imread('white_circles.png');
imshow(im,map);
댓글 수: 2
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Convert Image Type에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

