divide an image region into 4x4 blocks
조회 수: 2 (최근 30일)
이전 댓글 표시
How do I divide an image region into 4x4 blocks and then For each block, calculate the mean value of the block?
댓글 수: 0
채택된 답변
Joseph Cheng
2014년 3월 27일
You can try to use blockproc(A,[4 4],fun) where fun is a function which does mean(mean(block_struct.data))
추가 답변 (1개)
Image Analyst
2014년 3월 28일
See the FAQ: http://matlab.wikia.com/wiki/FAQ#How_do_I_split_an_image_into_non-overlapping_blocks.3F as well as my two attached blockproc demos.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!