clear;
close all;
Data_path = 'E:\BaiduNetdiskDownload\ICVL Mat\';
Save_path = 'E:\BaiduNetdiskDownload\ICVL Mat\RGB\';
p_mat = dir(strcat(Data_path,'\*.mat'));
for mat_idx = 1:numel(p_mat)
matname = p_mat(mat_idx).name;
matname = matname(1:end-4);
mat_path = strcat(Data_path,'\',p_mat(mat_idx).name);%
load(mat_path);
imwrite(rgb, [Save_path,matname,'.bmp']);
end