xxxx18一60岁hd中国/日韩女同互慰一区二区/西西人体扒开双腿无遮挡/日韩欧美黄色一级片 - 色护士精品影院www

資源簡介

用于深度學(xué)習(xí)中的圖像數(shù)據(jù)增廣的matlab小程序,保持圖像尺寸不變情況下,對圖像亮度角度的調(diào)整,實用性強~

資源截圖

代碼片段和文件信息

addpath(‘test‘);
addpath(‘train‘);

file_path?=?‘C:\Users\Byte\Desktop\test_images\‘;???%圖像文件夾路徑
save_path?=?‘C:\Users\Byte\Desktop\aa_test\‘;???%圖像文件夾路徑

%?img_path_list?=?dir(strcat(file_path‘*.jpg‘));?%獲取文件夾中所有jpg格式圖像
img_path_list?=?dir(strcat(file_path‘*.jpg‘));

img_num?=?length(img_path_list);??%獲取總數(shù)
if?img_num?>?0
????for?j?=?1?:?img_num
????????img_name?=?img_path_list(j).name;
????????image?=?imread(strcat(file_pathimg_name));
????????img_name_core?=?img_name(1:end-4);????%除去后綴名
????????
????????fprintf(‘%d?%d?%s\n‘ijstrcat(file_pathimg_name));
????????
????????%圖像增廣
????????
????????%翻轉(zhuǎn)flipdim
????????img_u?=?flipdim(image1);
????????img_r?=?flipdim(image2);
????????img_ur?=?flipdim(img_r1);
????????imwrite(img_ustrcat(save_pathimg_name_core‘

評論

共有 條評論