How can I take a color image, divide it into a 2x4 matrix, and shuffle those areas to output a scrambled image?
1 回表示 (過去 30 日間)
古いコメントを表示
I have a 769x1024 image and have made panes that are each 383x255. I want to rearrange these panes so that is outputs a scrambled image. For example, if the panes are named [A B C D; E F G H] I want it to scramble to something like [B D F G; C H A E], but with a different output each time.
0 件のコメント
採用された回答
Walter Roberson
2012 年 11 月 8 日
mat2cell(), and randperm() and reshape() to create the indices, create a new cell by indexing the cell output by mat2cell(), and then cell2mat() to create the new array.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Image Processing Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!