MATLAB: How to divide an image into 3*3 grids

image processing 3*3 grids

I have a set of leaf images of different sizes..I want to divide an image into 3*3 grids and then applying processing on that 3*3 grids individually..Can anyone please tell how to divide an image into 3*3 grids?

Best Answer

Have a look at blockproc
result = blockproc(img, [3 3], @somefun);
Related Question