What's the difference between imagesc and imshow?
348 views (last 30 days)
Adam Filion on 15 Apr 2013
imshow has a number of default settings intended for displaying images, such as turning off the axes and locking the aspect ratio, that imagesc does not. imshow also had additional options for customizing how you view the image that are not available or not as easily doable through imagesc. You can see the basic differences by doing something like the following and looking at the two figures side by side.
You can get full details on the functions and their usages through their documentation pages.
>> doc imagesc
>> doc imshow
Finally you can view the source code for both if interested.
>> edit imagesc
>> edit imshow
More Answers (2)
Mehri Mehrnia on 22 May 2022
I work with cardiac MRI images(grayscale). it happens repeatedly that "imagesc" shows the image while "imshow" shows a nonsence combination of black-white point!!
I don't know the reason. Any thought?