Presentation is loading. Please wait.

Presentation is loading. Please wait.

Patrick Cozzi University of Pennsylvania CIS Spring 2011

Similar presentations


Presentation on theme: "Patrick Cozzi University of Pennsylvania CIS Spring 2011"— Presentation transcript:

1 Patrick Cozzi University of Pennsylvania CIS 565 - Spring 2011
Summed Area Tables Patrick Cozzi University of Pennsylvania CIS Spring 2011

2 Summed Area Table Summed Area Table (SAT): 2D table where each element stores the sum of all elements in an input image between the lower left corner and the entry location.

3 Summed Area Table Example: (1 + 1 + 0) + (1 + 2 + 1) + (0 + 1 + 2) = 9
Input image SAT 2 1 4 9 12 14 1 2 2 6 9 11 1 2 1 2 5 6 8 1 1 2 1 2 2 4 ( ) + ( ) + ( ) = 9

4 Summed Area Table Benefit
Used to perform different width filters at every pixel in the image in constant time per pixel Just sample four pixels in SAT: w and h are the width and height of the filter kernel Image from

5 Summed Area Table Uses Glossy environment reflections and refractions
Approximate depth of field Objects far from the focal length are blurry, while objects at the focal length are in focus. Image from

6 Summed Area Table Input image SAT 2 1 1 2 1 2 1 1 1 2

7 Summed Area Table Input image SAT 2 1 1 2 1 2 1 1 1 2 1

8 Summed Area Table Input image SAT 2 1 1 2 1 2 1 1 1 2 1 2

9 Summed Area Table Input image SAT 2 1 1 2 1 2 1 1 1 2 1 2 2

10 Summed Area Table Input image SAT 2 1 1 2 1 2 1 1 1 2 1 2 2 4

11 Summed Area Table Input image SAT 2 1 1 2 1 2 1 2 1 1 2 1 2 2 4

12 Summed Area Table Input image SAT 2 1 1 2 1 2 1 2 5 1 1 2 1 2 2 4

13 Summed Area Table

14 Summed Area Table Input image SAT 2 1 4 9 1 2 2 6 9 11 1 2 1 2 5 6 8 1 1 2 1 2 2 4

15 Summed Area Table Input image SAT 2 1 4 9 12 1 2 2 6 9 11 1 2 1 2 5 6 8 1 1 2 1 2 2 4

16 Summed Area Table Input image SAT 2 1 4 9 12 14 1 2 2 6 9 11 1 2 1 2 5 6 8 1 1 2 1 2 2 4

17 Summed Area Table How would implement this on the GPU?

18 Summed Area Table Recall Inclusive Scan: 1 2 3 4 5 6 7 1 3 6 10 15 21
1 2 3 4 5 6 7 1 3 6 10 15 21 28

19 How would compute a SAT on the GPU using inclusive scan?
Summed Area Table How would compute a SAT on the GPU using inclusive scan?

20 Summed Area Table Step 1 of 2: 2 1 2 3 3 3 1 2 1 3 3 1 2 1 1 3 4 4 1 1
Input image Partial SAT 2 1 2 3 3 3 1 2 1 3 3 1 2 1 1 3 4 4 1 1 2 1 2 2 4 One inclusive scan for each row

21 Summed Area Table Step 2 of 2: 2 3 3 3 4 9 12 14 1 3 3 2 6 9 11 1 3 4
Partial SAT Final SAT 2 3 3 3 4 9 12 14 1 3 3 2 6 9 11 1 3 4 4 2 5 6 8 1 2 2 4 1 2 2 4 One inclusive scan for each Column, bottom to top


Download ppt "Patrick Cozzi University of Pennsylvania CIS Spring 2011"

Similar presentations


Ads by Google