folders=dir(‘文件夹地址‘); folders={folders.name}; folders=setdiff(folders,{‘.‘,‘..‘})‘; num=length(folders); utente = 0; for j=1:n utente=utente+1; tline = folders{j}; path_utente= [‘文件夹地址‘,tline,‘\‘]; photo_list = dir([path_utente,‘\*.文件后缀名‘]); currentRoi= imread([path_utente photo_list(i).name]); %处理文件 end
原文地址:https://www.cnblogs.com/zhuguanhao/p/11578399.html
时间: 2024-10-13 13:25:08