A=imread('fabric.png');
[m,n,k]=size(A);
figure,subplot(2,3,1),imshow(A);title('原图像');%读取图像并显示
A(:,1:50,1)=255;
A(:,1:50,2:3)=0;
A(:,n-49:n,1:2)=0;
A(:,n-49:n,3)=255;
subplot(2,3,2),imshow(A);title(
A=imread('fabric.png');
[m,n,k]=size(A);
figure,subplot(2,3,1),imshow(A);title('原图像');%读取图像并显示
A(:,1:50,1)=255;
A(:,1:50,2:3)=0;
A(:,n-49:n,1:2)=0;
A(:,n-49:n,3)=255;
subplot(2,3,2),imshow(A);title(