divide an image region into 4x4 blocks
1 view (last 30 days)
Show older comments
How do I divide an image region into 4x4 blocks and then For each block, calculate the mean value of the block?
0 Comments
Accepted Answer
Joseph Cheng
on 27 Mar 2014
You can try to use blockproc(A,[4 4],fun) where fun is a function which does mean(mean(block_struct.data))
More Answers (1)
Image Analyst
on 28 Mar 2014
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.
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!