Azzera filtri
Azzera filtri

Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

Analysis a no. of images using same code.

2 visualizzazioni (ultimi 30 giorni)
saras
saras il 18 Lug 2012
Chiuso: MATLAB Answer Bot il 20 Ago 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 Commenti
saras
saras il 18 Lug 2012
Modificato: Walter Roberson il 18 Lug 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
Walter Roberson
Walter Roberson il 18 Lug 2012
That code stops suddenly ??

Risposte (2)

Bob
Bob il 18 Lug 2012
Look into using the "dir" function

Walter Roberson
Walter Roberson il 18 Lug 2012

Questa domanda è chiusa.

Community Treasure Hunt

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

Start Hunting!

Translated by