how can i randomize an image?
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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???
0 commentaires
Réponses (2)
Walter Roberson
le 27 Fév 2017
special_seed = randi([1 255]);
randomized_image = uint8( mod(double(YourImage)+special_seed, 256) );
2 commentaires
Walter Roberson
le 27 Fév 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.
Image Analyst
le 27 Fév 2017
Modifié(e) : Image Analyst
le 28 Avr 2021
See attached demos for random scrambling and scrambling via Arnold's Cat Map.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/172882/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/172886/image.jpeg)
Voir également
Catégories
En savoir plus sur Convert Image Type dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!