Difference between image, imshow and imtool

15 visualizaciones (últimos 30 días)
aamir shabbir hussain
aamir shabbir hussain el 1 de Ag. de 2015
Comentada: DGM el 2 de Mayo de 2023
Hi guyz, Can any one tell me what is the difference between image, imshow and imtool ?

Respuestas (1)

amin nazari
amin nazari el 1 de Ag. de 2015
Editada: DGM el 2 de Mayo de 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 comentario
DGM
DGM el 2 de Mayo de 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().

Iniciar sesión para comentar.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by