How to divide an image with unequal size into 4 x 4 non-overlapping blocks.
조회 수: 1 (최근 30일)
이전 댓글 표시
an image with unequal size shoud be divided into 4 x 4 non-overlapping blocks.
댓글 수: 0
채택된 답변
Ameer Hamza
2018년 5월 2일
This code will convert the 3 channel inImage into 16 patches and save them in a cell array
mat2cell(inImage, size(inImage,1)/4*ones(4,1), size(inImage,2)/4*ones(4,1), 3)
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!