Please provide me a matlab source code for running number of files in a loop.
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
BIJOYETA
am 20 Mär. 2014
Kommentiert: Image Analyst
am 1 Nov. 2014
I am currently working on an image compression project. I have a a series of images in a folder named newsnap.I want to run a dct algorithm on the series of images and save it in another folder named video.So I need the matlab source code for my project urgently.
2 Kommentare
Akzeptierte Antwort
Marta Salas
am 20 Mär. 2014
Bearbeitet: Marta Salas
am 20 Mär. 2014
video_dir = 'snaps/'
extension = 'jpg'
out_dir = 'video/'
resnames=dir(fullfile(video_dirs,['*.' extension]));
for i=1:length(resnames)
img=imread(fullfile(video_dirs,resnames(i).name));
%
% whatever you want to do with your image
%
imwrite(img, [out_dir resnames(i).name]);
end
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Get Started with Image Processing Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!