Difference between image, imshow and imtool
15 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi guyz, Can any one tell me what is the difference between image, imshow and imtool ?
0 Kommentare
Antworten (1)
amin nazari
am 1 Aug. 2015
Bearbeitet: DGM
am 2 Mai 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 Kommentar
DGM
am 2 Mai 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().
Siehe auch
Kategorien
Mehr zu Basic Display finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!