How to divide an image into m*n blocks and then find mean and variance of each block?

2 views (last 30 days)
i have an image of 512*512. i want to divide it into 16*16 blocks. Then find mean and variance of each block. Can anyone help with a matlab code?

Answers (1)

Image Analyst
Image Analyst on 13 Sep 2015
You can do this with blockproc(). I'm sure that's one of the cases done in my blockproc tutorials, attached.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!