Reputation: 3989
In the wikipedia article ,the formula for integral image (summed area table) is given as .
Why the negative fourth term? I got a bit confused by this ..Can someone illustrate with an example?
Upvotes: 2
Views: 1917
Reputation: 31
The three integrals I(m, n) represent the entire area from (0, 0) to and including index (m, n). By adding the two integrals I(x-1, y) and I(x, y-1), the area between (0, 0) and (x-1, y-1) is added twice. Thus, the correct integral is given by subtracting I(x-1, y-1).
Upvotes: 3