Info

此问题已关闭。 请重新打开它进行编辑或回答。

Analysis a no. of images using same code.

2 次查看(过去 30 天)
saras
saras 2012-7-18
关闭: MATLAB Answer Bot 2021-8-20
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 个评论
saras
saras 2012-7-18
编辑:Walter Roberson 2012-7-18
% 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

回答(2 个)

Bob
Bob 2012-7-18
Look into using the "dir" function

Walter Roberson
Walter Roberson 2012-7-18

此问题已关闭。

Community Treasure Hunt

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

Start Hunting!

Translated by