by:黄光耀
clc
clear
close all
path = ‘C:\Users\1\Desktop\WET\并集后的照片’;
for i = 1: 5
fname = [path,’’,int2str(i),’.png’];
a = imread(fname);
% a = imread(‘C:\Users\1\Desktop\5\1.png’);
c = uint8(double(a)/1*255);
% imwrite(c,strcat(‘C:\Users\1\Desktop\6’,‘125.jpg’));
cA(:,:,1) = c;
cA(:,:,2) = c;
cA(:,:,3) = c;
imwrite(cA,strcat('C:\Users\1\Desktop\7\',num2str(i),'.jpg'));
% imwrite(im2uint8(double(a)),strcat('C:\Users\1\Desktop\6\','11.jpg'));
end