フィルターのクリア

how can i randomize an image?

1 回表示 (過去 30 日間)
nadia
nadia 2017 年 2 月 27 日
コメント済み: Samaa Yasser 2021 年 4 月 28 日
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
Walter Roberson 2017 年 2 月 27 日
special_seed = randi([1 255]);
randomized_image = uint8( mod(double(YourImage)+special_seed, 256) );
  2 件のコメント
nadia
nadia 2017 年 2 月 27 日
編集済み: nadia 2017 年 2 月 27 日
is there any function in matlab that convert an image to random image and encrypt the image with specified seed?
Walter Roberson
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
Image Analyst 2017 年 2 月 27 日
編集済み: Image Analyst 2021 年 4 月 28 日
See attached demos for random scrambling and scrambling via Arnold's Cat Map.
  4 件のコメント
Image Analyst
Image Analyst 2021 年 4 月 28 日
Samaa Yasser
Samaa Yasser 2021 年 4 月 28 日
thank you very much

サインインしてコメントする。

Community Treasure Hunt

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

Start Hunting!

Translated by