MATLAB: Divide an image region into 4×4 blocks

blockImage Processing Toolbox

How do I divide an image region into 4×4 blocks and then For each block, calculate the mean value of the block?

Best Answer

You can try to use blockproc(A,[4 4],fun) where fun is a function which does mean(mean(block_struct.data))
Related Question