What is command or way to represent 8 images in 2 different figues ??

1 visualización (últimos 30 días)
I know that we can use subplot for combining images. but resolution decreses as we increase images. So I want to use figure 1 and figure 2 both containing 4 images. Please help me..

Respuesta aceptada

Thorsten
Thorsten el 14 de Abr. de 2015
figure(1)
subplot(2,2,1), imshow(I1)
subplot(2,2,2), imshow(I2)
subplot(2,2,3), imshow(I3)
subplot(2,2,4), imshow(I4)
figure(2)
subplot(2,2,1), imshow(I1)
subplot(2,2,2), imshow(I2)
subplot(2,2,3), imshow(I3)
subplot(2,2,4), imshow(I4)
or in each figure
imshow([I1 I2; I3 I4]
  2 comentarios
Rushabh
Rushabh el 14 de Abr. de 2015
Editada: Rushabh el 14 de Abr. de 2015
Thanks sir Its perfect. Last code of your reply
imshow([I1 I2; I3 I4]
is not showing me images. can i know why ?
Thorsten
Thorsten el 15 de Abr. de 2015
This shows montages the four images in a single image using a 2x2 arrangement. It works only if the images have the same size and same dimension. If the values in the images have different ranges than Matlab cannot show them appropriately. Try normalizing the individual images to the interval [0, 1] before montage.

Iniciar sesión para comentar.

Más respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by