基于logistic混沌的图像加密-Arnold.m
A=imread;
A=rgb2gray;
[m,n]=size;
x=zeros;
x=0.2;
u=3.6;
for i=1:m*n-1
x=u*x*);
end
for i=1:m*n
if round)<100*x
x=mod-round))),256);
else
x=mod-round)))),256);
end
end
x=uint8;
c=zeros;
B=reshape;
B=uint8;
for i=1:m*n
c=bitxor,B);
end
B=reshape;
imshow);
未命名.jpg
上图是效果图!
这方面的文章 网上有不少我也从图书馆下了一些看了看 综合起来 写了这个程序!
有兴趣的朋友可以参考下,这个算是个序列运算的加密 不是最原始的logistic加密