how can i randomize an image?
    4 visualizzazioni (ultimi 30 giorni)
  
       Mostra commenti meno recenti
    
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 Commenti
Risposte (2)
  Walter Roberson
      
      
 il 27 Feb 2017
        special_seed = randi([1 255]);
randomized_image = uint8( mod(double(YourImage)+special_seed, 256) );
2 Commenti
  Walter Roberson
      
      
 il 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.
  Image Analyst
      
      
 il 27 Feb 2017
        
      Modificato: Image Analyst
      
      
 il 28 Apr 2021
  
      See attached demos for random scrambling and scrambling via Arnold's Cat Map.


Vedere anche
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



