Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as Plain Text by electrostatic ( 17 years ago )
function [x] = listing(y)
% Takes y as a path string and returns x as a structure of data and image names
%%% '/home/benebioglu/cs-4year/comp403/project-midterm/subset1/' should be y
dir_list = dir([y '*.png']);
for(i=1:length(dir_list))
disp(dir_list(i).name);
x(i).name = dir_list(i).name;
x(i).data = imread(strcat(data_dir, x(i).name));
end
end
Revise this Paste
Parent: 12220
Children: 12222