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???
답변 (2개)
Walter Roberson
2017년 2월 27일
special_seed = randi([1 255]);
randomized_image = uint8( mod(double(YourImage)+special_seed, 256) );
댓글 수: 2
Walter Roberson
2017년 2월 27일
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
2017년 2월 27일
편집: Image Analyst
2021년 4월 28일
0 개 추천
See attached demos for random scrambling and scrambling via Arnold's Cat Map.


댓글 수: 4
Walter Roberson
2017년 2월 27일
Note that the Cat Map does not have a "seed" as such. However, you could randomly select the number of iterations.
Samaa Yasser
2021년 4월 28일
please can i have the code of scrambling of grey image ?
Image Analyst
2021년 4월 28일
@Samaa Yasser, see attached m-files.
Samaa Yasser
2021년 4월 28일
thank you very much
카테고리
도움말 센터 및 File Exchange에서 Texture Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!