How to divide image into non-overlapping blocks??
Show older comments
my input image is M*M size. i have to divide the image into nonlapping blocks each of size m*n .
Accepted Answer
More Answers (1)
KSSV
on 28 Nov 2017
A = rand(32,32) ;
m = 4 ; n = 4 ;
l = size (A) ./ [m n];
T = mat2cell (A, repmat (m, l(1), 1), repmat (n, l (2), 1));
Also you may have a look on blockproc
Categories
Find more on Blocked Images in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!