how can i randomize an image?

Hi, I have an image and I want to randomize it with special seed and convert the original image to random image, after that I should recover the original image. how can I do it? can you guide me???

Risposte (2)

special_seed = randi([1 255]);
randomized_image = uint8( mod(double(YourImage)+special_seed, 256) );

2 Commenti

nadia
nadia il 27 Feb 2017
Modificato: nadia il 27 Feb 2017
is there any function in matlab that convert an image to random image and encrypt the image with specified seed?
No there is no function provided for that specific purpose. The code I gave above does one kind of randomization. To reverse use -special_seed instead of + it.

Accedi per commentare.

Image Analyst
Image Analyst il 27 Feb 2017
Modificato: Image Analyst il 28 Apr 2021

0 voti

See attached demos for random scrambling and scrambling via Arnold's Cat Map.

4 Commenti

Note that the Cat Map does not have a "seed" as such. However, you could randomly select the number of iterations.
please can i have the code of scrambling of grey image ?
thank you very much

Accedi per commentare.

Richiesto:

il 27 Feb 2017

Commentato:

il 28 Apr 2021

Community Treasure Hunt

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

Start Hunting!

Translated by