Multiple images to separate figures

1 visualizzazione (ultimi 30 giorni)
alona p
alona p il 9 Dic 2021
Risposto: Rahul il 13 Set 2024
Hi, i have several images with deferent filters (a,b,c) that saved as one .mat file. The ussie that i try to solve is a separate image for separate figure.
This one gives me only one picture at the time with filter a:
A = scan.Point.Filter(a).Pic;
imshow(A, []);
But I need multiple pictures with this filter at separate figures.
I've tried to use
imshow(A, []);
igure, imshow(A(:,:,:,1))
figure, imshow(A(:,:,:,2))
but obviosly i'm doing it in wrong way becous i need to determin it somehow at A = scan.Point.Filter(a).Pic;
Please help !

Risposte (1)

Rahul
Rahul il 13 Set 2024
I understand that you wish to display images with different filters in different figures which you have obtained from a '.mat' file.
This answer explains how you can leverage a loop for obtaining different images in different figures using the 'figure' and 'imshow' functions iteratively inside the loop.
You can refer to the following MATLAB documentations to know more about these functions:
Hope this helps!

Prodotti


Release

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by