MATLAB: How to divide image into overlapping blocks size

blockgranularitygridImage Processing Toolboxoverlappingwindow

In a paper, it has been said that they have computed frequency over a discrete grid of granularity using 15×15 windows. Consulting my friend, it means overlapping blocks centered at each 8 pixels, that its length and width would be 15 pixels.
How can I do it with blockproc()? Or is there any other useful ways?

Best Answer

If blockproc is not working out due to 8, why not use a a nested for loop to carve out the 15x15 block?
[row col]=size(Image)
for i=8:8:col-7
j = 8:8:row-7
block=Image(j-7:j+7,i-7:i+7)
end
end