資源簡介
matlab程序批量根據鼠標點兩下選中圖片矩形區域剪切保存 可直接運行
代碼片段和文件信息
path=‘E:\xiaoxiaobing\work\Matconvnet-imagenet--master\test\data\pigwy‘;
dirSourceList=dir(path);
countSourceList=length(dirSourceList);%文件夾個數
for?numDirList?=?3:countSourceList
????
????disp([‘開始剪切‘num2str(dirSourceList(numDirList).name)‘豬:‘]);
????folder?=?dir([path‘\‘dirSourceList(numDirList).name]);
????countfolderlist=length(folder);
????for?numcountfolderlist?=?3:countfolderlist
????????ff=dir([path‘\‘dirSourceList(numDirList).name‘\‘folder(numcount
評論
共有 條評論