how to divide image into 16 by16 nonoverlapping blocks of 768 by 512 of original image and randomly scramble the blocks and reverse back to the original image from the scrambled image?
조회 수: 1 (최근 30일)
이전 댓글 표시
how to divide image into 16 by 16 of unequal sized original image and randomly scramble the blocks. and again how to obtain the original image from the scrambled image?
댓글 수: 0
답변 (1개)
Etsuo Maeda
2018년 6월 20일
When we have one unique point (x, y), the squared image can be divided into 4 blocks. Two points for 4-9 blocks, Three points for 4-16 blocks, and Four points for more. To generate unique random number, you can use randperm function. For the purpose of reconstruction image, use the difference between original image and generated block. Optimization toolbox will help you to search the minimum point of the difference.
HTH
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 近傍処理とブロック処理에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!