Reading images from a folder ony by one
23 views (last 30 days)
Honglei Chen on 15 Feb 2012
You can use dir and filter out the files you need, for example, let's say you want to read in all the jpg files in the folder 'myimage'.
files = dir('myimage');
for m = 1:numel(files)
x = imread(file(m).name,'jpg');
% process x