How I can save the figures plotted from multiple cycles into a specific folder created and make a movie from the images sequence

1 vue (au cours des 30 derniers jours)
I have 100 cycle of images in loop i, but the figure showed the latest cycle only. How to display the figures in every cycle and save all of the figures in 100 cycles to a specific folder. The saved images then animated like a video in matlab. Help me!!
for i= LastImage:-1:StartingImage
n = i - StartingImage;
CAIT = RepRate*n;
Image(:,:,i) = Readim7(thisFolder, baseFileNames, i);
%% BG Subtraction
Subtracted(:,:,i) = Image(:,:,i)-avg_BG;
%% Frequency filtering
[FFT_Filtered_Image(:,:,i)] = ApplyFFT(Subtracted(:,:,i), Mask);
%% Spatial Filtering
Median_filtered_Image(:,:,i)= medfilt2(FFT_Filtered_Image(:,:,i), [3 3]);
ProcessedImage(:,:,i) = Median_filtered_Image(:,:,i);
%% Automatic dynamic thresholding
[I_avg, Offset_L, New_TH] = ComputeTH(ProcessedImage(:,:,i), SC, Pre_TH);
%% Binarization Process
[FlameRadiusInMm(:,i), Pre_TH, boundary_thin(:,:,i)]...
= BinarizeImage(ProcessedImage(:,:,i), New_TH, PixelSize);
figure;
subplot(1,2,1);
imshow(ProcessedImage(:,:,i));
subplot(1,2,2);
imshow(boundary_thin(:,:,i));
  10 commentaires
Firdaus Radzuan
Firdaus Radzuan le 4 Avr 2020
Salam Afif Aziz, is it possible if you could send me your full coding as I am new to image processing?

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Images dans Help Center et File Exchange

Produits


Version

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by