MATLAB: How to divide image to overlapping blocks

overlapping blocks

how to divide image to overlapping blocks using blockproc or mat2cell.

Best Answer

blockproc() can be used overlapping by specifying borders.
mat2cell() cannot be used to create overlapping blocks.
For blockproc, you would specify the block as 4 x 4, but then specify 6 as the number to add above and below, and 6 as the number to add left and right. 6 + 4 + 6 = 16