Borrar filtros
Borrar filtros

I have a sequence of images and I want to apply something (Gabor filter) on each of the images?

1 visualización (últimos 30 días)
Problem is, when I apply Gabor on a single image, I get perfect results, but when I access the entire images , it only operates on the last image in the folder, most probably others are over written, how can I access each individual image in a folder??

Respuesta aceptada

Image Analyst
Image Analyst el 1 de Abr. de 2014
myFolder = 'C:\Documents and Settings\yourUserName\My Documents\My Pictures';
if ~isdir(myFolder)
errorMessage = sprintf('Error: The following folder does not exist:\n%s', myFolder);
uiwait(warndlg(errorMessage));
return;
end
filePattern = fullfile(myFolder, '*.jpg');
jpegFiles = dir(filePattern);
for k = 1:length(jpegFiles)
baseFileName = jpegFiles(k).name;
fullFileName = fullfile(myFolder, baseFileName);
fprintf(1, 'Now reading %s\n', fullFileName);
imageArray = imread(fullFileName);
imshow(imageArray); % Display image.
drawnow; % Force display to update immediately.
end
  2 comentarios
Rida
Rida el 1 de Abr. de 2014
in imageArray I got my images , now if I want to apply something on the ist image then on the second image and so on, shall I proceed with this : imageArray(1) imageArray(2) this gives me the numeric value in the matrix, but I want the particular image at location 1, and then perform some task , then on 2,, and so on How can I do this?
Image Analyst
Image Analyst el 1 de Abr. de 2014
Not exactly sure what you're describing, but yeah, that's all possible (whatever it is). Just do normal MATLAB programming commands. http://www.mathworks.com/matlabcentral/answers/8026-best-way-s-to-master-matlab

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Startup and Shutdown en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by