Overview
An integral image stores the sum above and left of each pixel, allowing fast box filters and region statistics.
Precomputes cumulative pixel sums so rectangular sums are answered in constant time.
Compact metadata for implementation and discovery.
An integral image stores the sum above and left of each pixel, allowing fast box filters and region statistics.
Quick facts
Runtime and memory behavior at a glance.
Best
O(1)
Average
O(1)
Worst
O(1)
Space
O(pixels)
sum = S(D) - S(B) - S(C) + S(A)Combines four integral-image corners to get a rectangular sum.
Show the source image beside masks, filters, or motion vectors produced by the algorithm.
Integral Image should be used with the assumptions and tradeoffs of summed-Area Table in mind.
What each reference supports for this entry.
Reference for integral images and constant-time rectangular feature sums.
Open sourceComputer-vision textbook support for Integral Image's feature, matching, flow, or multiscale image-analysis workflow.
Open sourceGood next jumps from the relationship graph, ranked for useful discovery.
Integral images can accelerate windowed sums used in template and feature matching.