资源简介
图像加密陈氏超混沌系统和Arnold变换是经常要用到的代码
代码片段和文件信息
function M = Arnold(QFrequencycrypt)
M = Q;
Size_Q = size(Q);
n = 0;
K= Size_Q(1);
K3=Size_Q(3);
for ss=1:3
temp1 = Q(::ss);
temp2 = Q(::ss);
if crypt==1 %解密
% Frequency=ArnoldPeriod( Size_Q(1) )-Frequency;%通过周期减去迭代的次数,用此数据作为新的迭代次数,可以达到解密的目的
for s = 1:Frequency
n = n + 1;
if (mod(n2) == 0)
for i = 1:K
for j = 1:K
c = temp2(ij);
% M1_t(mod(i+j-2K)+1mod(i+2*j-3K)+1) = c;
temp1(mod(2*i-j-1K)+1mod(-3*i+2*j+1K)+1) = c;
end
end
else
for i = 1:K
for j = 1:K
c = temp1(ij);
% M2_t(mod(i+j-2K)+1mod(i+2*j-3K)+1) = c;
temp2(mod(2*i-j-1K)+1mod(-3*i+2*j+1K)+1) = c;
end
end
end
end
%根据迭代的次数,确定此时的图像信息。这和上
- 上一篇:IMM交互多模程序MATLAB
- 下一篇:复杂网络中GN,FN网络的matlab实现
评论
共有 条评论