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!