How to recombine a color image divided into blocks?
조회 수: 2 (최근 30일)
이전 댓글 표시
Dear sir, i used the following code to divide a color image into 4 blocks:
img4x4 = mat2cell( org_img, size(org_img,1)/2 * ones(1,2), size(org_img,2)/2 * ones(1,2), size(org_img,3) );
Kindly tell m e how to reconstruct original image from the 4 different blocks?
댓글 수: 0
답변 (1개)
Walter Roberson
2015년 12월 1일
img2x2 = mat2cell( org_img, size(org_img,1)/2 * ones(1,2), size(org_img,2)/2 * ones(1,2), size(org_img,3) );
reconstructed = cell2mat(img2x2);
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!