Damon Julian
Damon Julian

Reputation: 3989

calculating integral image(summed area table) for a pixel

In the wikipedia article ,the formula for integral image (summed area table) is given as enter image description here.

Why the negative fourth term? I got a bit confused by this ..Can someone illustrate with an example?

Upvotes: 2

Views: 1917

Answers (1)

Joel
Joel

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

Related Questions