Why is imshow() not showing my image correctly?
    조회 수: 4 (최근 30일)
  
       이전 댓글 표시
    
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월 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.
채택된 답변
  Anand
    
 2014년 10월 3일
        You should contact Tech Support about this question. I have a feeling it may have to do with the graphics driver, but that's just a guess.
댓글 수: 3
  Marco
      
 2014년 10월 10일
				
      편집: Marco
      
 2014년 10월 10일
  
			Hopefully. Because I have the identical problem using 2014a! Zooming (with the magnifier button of the figure window) is a kind of lottery, sometimes it works, sometimes it looks just wrong until I zoom forth or back to another magnification value, sometimes the figure (the presentation, not the buttons or window itself) even freezes and I have to make a new figure to be able to continue with inspection of my image.
추가 답변 (0개)
참고 항목
카테고리
				Help Center 및 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!



