Borrar filtros
Borrar filtros

can i get the matlab code for scrambling a digital image based on arnold transformations??

6 visualizaciones (últimos 30 días)
clc;
clear all;
close all;
A = imread('cameraman.tif');
imshow(A);
N=256;
T=1.4938*N+40.8689;
disp(T);
t=0;
T2=ceil(T);
disp(T2);
c=[T];
iscram=A;
while t<T2
for i=[0:N-1]
for j=[0:N-1]
iscram(i,j)=iscram(mod(i+j,N),mod(i+(2*j),N));
end
end
t=t+1;
end
figure,imshow(imscram);
  4 comentarios
mamoona
mamoona el 31 de En. de 2024
hey! do you have the matlab code for image scrambling and unscrambling using arnold cat map? i am working on colored images.

Iniciar sesión para comentar.

Respuesta aceptada

Image Analyst
Image Analyst el 23 de Nov. de 2014
Editada: Image Analyst el 30 de Dic. de 2016
I don't really know what this code is doing or if I'm even doing it correctly, but here's a version of the code that "works": [OLD CODE DELETED]
[EDIT] - See vastly improved working code in my comment further down, and also attached here.
  16 comentarios
Vivek
Vivek el 20 de Oct. de 2022
This code is working only those images which are in image toolbox but if we put an image like LEENA or Baboon it shows an error that N which is N> maxallowablesize is unrecognized variable. Anybody can help me bcz we have to test our encryption result on Baboon, Leena, Camerman because they are general image. So please help me what do I change in my code after sending Lena's picture to that Image toolboox folder.
Image Analyst
Image Analyst el 20 de Oct. de 2022
@Vivek You forgot to attach your image! Probably because you've never see posting guidelines:
I'll check back later for your image that the code throws an error for.

Iniciar sesión para comentar.

Más respuestas (1)

Manpreet
Manpreet el 1 de Mayo de 2015
I am doing a project on Image watermarking using Discrete Wavelet Transform(DWT) and Encryption. It is carried out in the following steps 1.) Select the host image( Image in which watermark will be hided). 2.) Select the watermark. 3.) Encrypt the watermark using the following code as given by sir(Image analyst) 4.) Watermarking using DWT.
5.) Recover the Encrypted watermark using recovery formula.
6.) Decryption of watermark using the following code which is also attached. This is also given by Image Analyst
My Question is that I have made many attacks on Watermarked Image like Rotation, Scaling, Croping but PSNR and MSE between (Watermark and Decrypted watermark) after and before attack remain Infinity and Zero respectively.
I think During Decryption, I have used same ran permutation that I used to ENCRYPT the image. So I think, Attacks have no effect on decrypted image.
Question is how to improve my code or what suggestions you can give me.
I need Help. Though, I am trying but yr valuable suggestions can make code more effective and fast
Thanks............
  7 comentarios
Walter Roberson
Walter Roberson el 28 de Jul. de 2016
Discussion of RSA or any other non-trivial encryption is not permitted here due to the laws of the USA.

Iniciar sesión para comentar.

Community Treasure Hunt

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

Start Hunting!

Translated by