How can I split an image frame into 10x10 patch size?

Hello, everyone.
I'm going to divide the image frame by 10x10 and get a histogram for each patch.
How can I use the mat2cell function?
Image frame size is 240x320.
As a result, there will be 24 patches and 32 patches.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by