Sum of integral image
s = iisum(ii, u1, v1, u2, v2) is the sum of pixels in the rectangular image region defined by its top-left (u1,v1) and bottom-right (u2,v2). ii is a precomputed integral image.
Machine Vision Toolbox for MATLAB © 1990-2014 Peter Corke.