文件名称:加密算法类txt
文件大小:3KB
文件格式:CPP
更新时间:2018-08-15 09:53:11
加密算法
clear close all clc f=imread('C:\Users\wm\Pictures\捕.png'); figure() imshow(f) title('原图'); [r,c,z] = size(f); ImgNew = zeros(r,c,z); for i=1:r for j=1:c ImgNew(i,j,1) = f(r-i+1,j,1); ImgNew(i,j,2) = f(r-i+1,j,2); ImgNew(i,j,3) = f(r-i+1,j,3); end end ImgNew = uint8(ImgNew); figure() imshow(ImgNew)