MATLAB: How to crop an image into blocks and store blocks in an array or matrix

box counting crop block store array matrixMATLAB

I need to crop an image into blocks an store the blocks in a matrix because I need to apply BoxCounting algorithm on each block.

Best Answer

So, I want to Thank you four your answers.
The BoxCounting Algorithm is this: click
I will be more specific: Step 1: I need to divide a binary picture in blocks Step 2: I need to apply BoxCounting function on each block Step 3: My result need to be a matrix or an array with the values of BoxCounting applied on each block.
If I use:
T=blockproc(Ibw, blockSize, @BoxCountfracDim);
My response from Matlab is a matrix with BoxCounting applied on the full image, not on every block. I hope you understand me.
I am so grateful for your help !
Related Question