日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 人文社科 > 生活经验 >内容正文

生活经验

【MATLAB】————拷贝指定文件路径下的有序文件(选择后),可处理固定规律的文件图片数据或者文件

發布時間:2023/11/27 生活经验 34 豆豆
生活随笔 收集整理的這篇文章主要介紹了 【MATLAB】————拷贝指定文件路径下的有序文件(选择后),可处理固定规律的文件图片数据或者文件 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

總體上來說這種數據有2中處理思路。第一種如下所示,從一組數據中挑選出符合要求的數據;

?第二中就是數據中不需要的數據刪除,選擇處理不需要的數據,留下的補集就是需要的數庫。一般情況下需要看問題是否明確,需求明確的話,考慮操作數,和操作的復雜程度,選擇具體使用哪一種數據。

index=[2,4,7,13,14];
% parent_path='\\ip\public\光學測試\0基線\O公司\O公司實測數據\拍攝';
parent_path='C:\Users\Administrator\Desktop\part_noon';
folder_name='室內人臉';output_path=['C:\Users\Administrator\Desktop\上午\',folder_name];
if exist(output_path,'dir')rmdir(output_path,'s');
endif ~exist(output_path,'dir')mkdir(output_path);
endoutput_depth=[output_path,'\depth'];
if ~exist(output_depth,'dir')mkdir(output_depth);
endoutput_ir=[output_path,'\ir'];
if ~exist(output_ir,'dir')mkdir(output_ir);
endoutput_raw=[output_path,'\raw'];
if ~exist(output_raw,'dir')mkdir(output_raw);
endfloder_path=[parent_path,'\',folder_name];
for i = 1:size(index,2)filepath=[floder_path,'\raw\depth8_',num2str(index(i)),'.bmp'];copytopath=[output_raw,'\depth8_',num2str(i),'.bmp'];copyfile(filepath, copytopath);filepath=[floder_path,'\raw\ir_background8_',num2str(index(i)),'.bmp'];copytopath=[output_raw,'\ir_background8_',num2str(i),'.bmp'];copyfile(filepath, copytopath);filepath=[floder_path,'\raw\ir8_',num2str(index(i)),'.bmp'];copytopath=[output_raw,'\ir8_',num2str(i),'.bmp'];copyfile(filepath, copytopath);filepath=[floder_path,'\raw\speckle_enhance8_',num2str(index(i)),'.bmp'];copytopath=[output_raw,'\speckle_enhance8_',num2str(i),'.bmp'];copyfile(filepath, copytopath);filepath=[floder_path,'\raw\speckle_original8_',num2str(index(i)),'.bmp'];copytopath=[output_raw,'\speckle_original8_',num2str(i),'.bmp'];copyfile(filepath, copytopath);filepath=[floder_path,'\raw\speckle8_',num2str(index(i)),'.bmp'];copytopath=[output_raw,'\speckle8_',num2str(i),'.bmp'];copyfile(filepath, copytopath);%filepath=[floder_path,'\ir\',num2str(index(i)),'.png'];copytopath=[output_ir,'\',num2str(i),'.png'];copyfile(filepath, copytopath);%filepath=[floder_path,'\depth\',num2str(index(i)),'.png'];copytopath=[output_depth,'\',num2str(i),'.png'];copyfile(filepath, copytopath);
end
index
folder_name

?

總結

以上是生活随笔為你收集整理的【MATLAB】————拷贝指定文件路径下的有序文件(选择后),可处理固定规律的文件图片数据或者文件的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。