Info

This question is closed. Reopen it to edit or answer.

Analysis a no. of images using same code.

1 view (last 30 days)
saras
saras on 18 Jul 2012
Closed: MATLAB Answer Bot on 20 Aug 2021
Hi,I'm new to matlab so if this is a basic question then pardon me.I have 850 no. images collecting from a videofile. Now i am analysis one image & getting the data. Now I can't understand how can i approach for the rest of images. I mean that how i can get data from all other images.Is there any way that i can make chart of that like on EXCEl. Plz help me.
  3 Comments
saras
saras on 18 Jul 2012
Edited: Walter Roberson on 18 Jul 2012
% Create an array of filenames that make up the image sequence
fileFolder = fullfile(matlabroot,'G:\ flame 1 (500 fps)\ceria flame 1 new (500 fps)00000i.jpg');
dirOutput = dir(fullfile(fileFolder,' flame 1 new (500 fps)000001.jpg'));
fileNames = {dirOutput.name}';
numFrames = numel(fileNames);
I = imread('G:\ceria flame 1 (500 fps)'{1});
% Preallocate the array
sequence = zeros([size(I) numFrames],class(I));
sequence(:,:,1) = I;
% Create image sequence array
for p = 2:numFrames
sequence(:,:,p) = imread(fileNames{p});
end
% Process sequence
sequenceNew = stdfilt(sequence,ones(3));
% View results
figure;
for k = 1:numFrames
imshow(sequence(:,:,k));
title(sprintf('Original Image # %d',k));
pause(1);
imshow(sequenceNew(:,:,k),[]);
title(sprintf('Processed Image # %d',k));
pause(1

Answers (2)

Bob
Bob on 18 Jul 2012
Look into using the "dir" function

Walter Roberson
Walter Roberson on 18 Jul 2012

Community Treasure Hunt

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

Start Hunting!