Compute integral image
out = intimage(im) is an integral image corresponding to im.
Integral images can be used for rapid computation of summations over rectangular regions.
Create integral images for sum of pixels over rectangular regions
i = intimage(im);
Create integral images for sum of pixel squared values over rectangular regions
i = intimage(im.^2);
Machine Vision Toolbox for MATLAB © 1990-2014 Peter Corke.