Filter löschen
Filter löschen

how can i randomize an image?

1 Ansicht (letzte 30 Tage)
nadia
nadia am 27 Feb. 2017
Kommentiert: Samaa Yasser am 28 Apr. 2021
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???

Antworten (2)

Walter Roberson
Walter Roberson am 27 Feb. 2017
special_seed = randi([1 255]);
randomized_image = uint8( mod(double(YourImage)+special_seed, 256) );
  2 Kommentare
nadia
nadia am 27 Feb. 2017
Bearbeitet: nadia am 27 Feb. 2017
is there any function in matlab that convert an image to random image and encrypt the image with specified seed?
Walter Roberson
Walter Roberson am 27 Feb. 2017
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.

Melden Sie sich an, um zu kommentieren.


Image Analyst
Image Analyst am 27 Feb. 2017
Bearbeitet: Image Analyst am 28 Apr. 2021
See attached demos for random scrambling and scrambling via Arnold's Cat Map.
  4 Kommentare
Samaa Yasser
Samaa Yasser am 28 Apr. 2021
thank you very much

Melden Sie sich an, um zu kommentieren.

Community Treasure Hunt

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

Start Hunting!

Translated by