Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Analysis a no. of images using same code.

조회 수: 4 (최근 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
Walter Roberson
Walter Roberson 2012년 7월 18일
That code stops suddenly ??

답변 (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