MATLAB: How to divide a 1024 * 1024 image into 128 *128 equal parts

blockprocblocksImage Processing Toolboximage segmentation

Image size is 1024*1024. I need to divide this image into equal parts of size 128*128 and then i need to calculate local variance map for each parts. Can anyone please help me to do this. Thanks in advance.

Best Answer

blockproc()