matllab according to folder with files

the dir = Folders ( ' folder address ' ); 

Folders = {} folders.name; 
Folders = setdiff (Folders, { ' . ' , ' .. ' }) ' ; 
NUM = length (Folders); 

utente = 0 ; 

for = J . 1 : n- 
    utente = utente + . 1 ; 
    Tline = folders {J}; 
    path_utente = [ ' folder address ' , Tline, ' \ ']; 
    photo_list the dir = ([path_utente, '. \ * File extension ' ]); 
    currentRoi = imread ([path_utente photo_list (I) .name]);% document processing 
end

 

Guess you like

Origin www.cnblogs.com/zhuguanhao/p/11578399.html