Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

Analysis a no. of images using same code.

2 visualizaciones (últimos 30 días)
saras
saras el 18 de Jul. de 2012
Cerrada: MATLAB Answer Bot el 20 de Ag. de 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 comentarios
saras
saras el 18 de Jul. de 2012
Editada: Walter Roberson el 18 de Jul. de 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 el 18 de Jul. de 2012
That code stops suddenly ??

Respuestas (2)

Bob
Bob el 18 de Jul. de 2012
Look into using the "dir" function

Walter Roberson
Walter Roberson el 18 de Jul. de 2012

La pregunta está cerrada.

Community Treasure Hunt

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

Start Hunting!

Translated by