how can i randomize an image?
Mostrar comentarios más antiguos
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???
Respuestas (2)
Walter Roberson
el 27 de Feb. de 2017
special_seed = randi([1 255]);
randomized_image = uint8( mod(double(YourImage)+special_seed, 256) );
2 comentarios
Walter Roberson
el 27 de Feb. de 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
el 27 de Feb. de 2017
Editada: Image Analyst
el 28 de Abr. de 2021
0 votos
See attached demos for random scrambling and scrambling via Arnold's Cat Map.


4 comentarios
Walter Roberson
el 27 de Feb. de 2017
Note that the Cat Map does not have a "seed" as such. However, you could randomly select the number of iterations.
Samaa Yasser
el 28 de Abr. de 2021
please can i have the code of scrambling of grey image ?
Image Analyst
el 28 de Abr. de 2021
@Samaa Yasser, see attached m-files.
Samaa Yasser
el 28 de Abr. de 2021
thank you very much
Categorías
Más información sobre Texture Analysis en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!