フィルターのクリア

how do I descrambling for the scrambling code explain in below:

3 ビュー (過去 30 日間)
hayat ali
hayat ali 2018 年 11 月 24 日
コメント済み: Devisha Tiwari 2021 年 4 月 16 日
origin=imread('lena.bmp');
imshow(origin)
title('Image Loaded')
temp=origin;
n=length(temp)
N=3000; % no of iterartions
m=0;
a=20;
b=10;
c=a*b+1;
flag=0;
while flag==0
for i=0:n-1
for j=0:n-1
x=mod(i+a*j,n);
y=mod(b*i+c*j,n);
lastimage(x+1,y+1)=temp(i+1,j+1);
end
end
m=m+1;
if(mod(m,4)==0)
figure,imshow(lastimage)
title('Scrambled Image')
flag=flag+1;
else
temp=lastimage;
end
end
  1 件のコメント
Devisha Tiwari
Devisha Tiwari 2021 年 4 月 16 日
The code above performs Arnold's cat map on the lena image.

サインインしてコメントする。

採用された回答

Image Analyst
Image Analyst 2018 年 11 月 24 日
It looks like you're trying to do Arnold's cat map: Wikipedia Arnold's cat map
See wikipedia and my attached demo, which has LOTS of comments to explain it.
  2 件のコメント
hayat ali
hayat ali 2018 年 11 月 27 日
thank you very much.
I just want steps that reflect the previous code steps. can you help me to get it?
Image Analyst
Image Analyst 2018 年 11 月 27 日
Not sure what you want to get. The previous code steps will of course "reflect" the previous code steps. In fact, they are identical. I don't know what steps to tell you to take. Do you mean
  1. highlight the code,
  2. type control-c, then
  3. go somewhere where you want to paste it, and
  4. type control-v?
Those steps?
Please format your code as code so that people can easily copy it to the clipboard. Then no one has to mess with highlighting and typing control-c, we can just click the copy link.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeConvert Image Type についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by