Please explain the code for the key.
image scrambling using arnold scramble
1 次查看(过去 30 天)
显示 更早的评论
does anyone knows about arnolg's image scrambling ? i am scrambling an image using arnold scramble as :
wname='_copyright.bmp';
I=imread(wname);
[rown,coln]=size(I);
ct=input('Enter Key');
for inc=1:ct
for row=1:rown
for col=1:coln
nrowp = row;
ncolp=col;
for ite=1:inc
newcord =[1 1;1 2]*[nrowp ncolp]';
nrowp=newcord(1);
ncolp=newcord(2);
end
arnold(row,col)=I((mod(nrowp,rown)+1),(mod(ncolp,coln)+1));
end
end
end
can anyone plz tell how to get back original image by applying reverse arnold scramble ???
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!