Difference between image, imshow and imtool
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi guyz, Can any one tell me what is the difference between image, imshow and imtool ?
0 commentaires
Réponses (1)
amin nazari
le 1 Août 2015
Modifié(e) : DGM
le 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 commentaire
DGM
le 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().
Voir également
Catégories
En savoir plus sur Basic Display dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!