y=key-0.01 %
for k=1:N;
y=a*y*(1-y);
yn(k)=y;
end;
yn=mod(1000*xn,256);
yn=uint8(yn);
n=1;
for i=1:b
for j=1:c
W(i,j)=bitxor(yn(n),Y(i,j));
n=n+1;
end
end
subplot(1,2,1),imshow(W),title('image');
subplot(1,2,2),imhist(W),title('image’);
评论0