Difference between image, imshow and imtool

17 views (last 30 days)
Hi guyz, Can any one tell me what is the difference between image, imshow and imtool ?

Answers (1)

amin nazari
amin nazari on 1 Aug 2015
Edited: DGM on 2 May 2023
Hi,Aamir
imshow() is a function to show an image.
imtool() is also a function to show an image, but with imtool() you can change some component of the image. There are some tools on imtool() to zoom, crop, change the value of pixel and so on. If you want to see a picture you have to use imread(), then imshow() or imtool() for representing.
For example: suppose there is a image in corrent folder called Ararat.npg:
% step1:
x = imread('Ararat.npg');
% step2:
imshow(x); % or imtool(x);
so, you can see the Ararat picture!
  1 Comment
DGM
DGM on 2 May 2023
I will add that image() is the core image display tool. It can be used for displaying RGB images, and it can be used for displaying single-channel images using a direct colormapping (i.e. indexed color).
Similarly, imagesc() displays single-channel images using 'scaled' colormapping. In scaled colormapping, the extremes of the image data correspond to the ends of the given colormap.
On the other hand, imshow() adds extra conveniences. By default, the image is shown without ticks or tick labels. The image aspect ratio is preserved. As before, imshow() applies colormapping to single-channel images, but it defaults to a gray colormap. It also has some other conveniences.
Internally, imagesc() and imshow() both use image().

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!