Why is imshow() not showing my image correctly?
古いコメントを表示
I'm using glxa64 Matlab R 2014a on Ubuntu 14.04. Often, the following code:
>> im = imread('test/1_crop.png');
>> figure; imshow(im)
Will produce this:

Whereas the original image is:

imagesc() always shows the correct image. Also, I've observed that resizing the imshow() window produces unpredictable changes - some resizes make it look correct, some resizes make it go wrong again.
Does anybody have any ideas about why this happens?
Thanks!
5 件のコメント
Image Analyst
2014 年 10 月 3 日
You forgot to attach your image. So what can we say?
Samarth Manoj Brahmbhatt
2014 年 10 月 3 日
編集済み: Samarth Manoj Brahmbhatt
2014 年 10 月 3 日
Image Analyst
2014 年 10 月 3 日
No. You inserted screenshots of figures of the image displayed in an axes - you did not attach the actual "test/1_crop.png" itself. I can't test your image with screenshots.
Samarth Manoj Brahmbhatt
2014 年 10 月 3 日
Image Analyst
2014 年 10 月 4 日
No I could not understand that much, because it doesn't happen with me or anyone else that I've heard of, for images in general. That's why I thought it might be something specific to that particular image . But now you say that imshow() never, ever works for you, for any image whatsoever. So in that case you need to call tech support.
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Creating, Deleting, and Querying Graphics Objects についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!