168 471 Computer Graphics, KKU. Lecture 91 Antialiasing Aliased 'W'Antialiased 'W' digitized Analog...

7
168 471 Computer Graphics, KKU. Lec ture 9 1 Antialiasing Aliased 'W' Antialiased 'W' digitized Analog lineDigital line: aliasing occ jaggies

Transcript of 168 471 Computer Graphics, KKU. Lecture 91 Antialiasing Aliased 'W'Antialiased 'W' digitized Analog...

Page 1: 168 471 Computer Graphics, KKU. Lecture 91 Antialiasing Aliased 'W'Antialiased 'W' digitized Analog lineDigital line: aliasing occurs jaggies.

168 471 Computer Graphics, KKU. Lecture 9

1

Antialiasing

Aliased 'W' Antialiased 'W'

digitized

Analog line Digital line: aliasing occurs

jaggies

Page 2: 168 471 Computer Graphics, KKU. Lecture 91 Antialiasing Aliased 'W'Antialiased 'W' digitized Analog lineDigital line: aliasing occurs jaggies.

168 471 Computer Graphics, KKU. Lecture 9

2

Antialiasing

- What anti aliasing attempts to do is, using mathematics, fill i

n some of the digital system w - ith colors that are in between t he two adjoining colors. In this

case a medium gray would be between the black and the whi

te. Some gray squares placed in the grid might help soften u

p the "jaggies"

Page 3: 168 471 Computer Graphics, KKU. Lecture 91 Antialiasing Aliased 'W'Antialiased 'W' digitized Analog lineDigital line: aliasing occurs jaggies.

168 471 Computer Graphics, KKU. Lecture 9

3

Antialiasing

Page 4: 168 471 Computer Graphics, KKU. Lecture 91 Antialiasing Aliased 'W'Antialiased 'W' digitized Analog lineDigital line: aliasing occurs jaggies.

168 471 Computer Graphics, KKU. Lecture 9

4

Unweighted Area Sampling

• Intensity is proportional to the amount of area covered.• Defining the box weighting function which has volume of 1 (Imax).• Determine the overlap volume Ws [0, 1].•

Page 5: 168 471 Computer Graphics, KKU. Lecture 91 Antialiasing Aliased 'W'Antialiased 'W' digitized Analog lineDigital line: aliasing occurs jaggies.

168 471 Computer Graphics, KKU. Lecture 9

5

Weighted Area Sampling

Page 6: 168 471 Computer Graphics, KKU. Lecture 91 Antialiasing Aliased 'W'Antialiased 'W' digitized Analog lineDigital line: aliasing occurs jaggies.

168 471 Computer Graphics, KKU. Lecture 9

6

Antialiasing in Practice

• Use of low pass filter by summing products between the mask coefficients and the intensities of the pixels under the mask.• For w which is a 3x3 mask, the response R at the center of the mask is

R = w1z1 + w2z2 + … + w9z9

RR

maskmask

Page 7: 168 471 Computer Graphics, KKU. Lecture 91 Antialiasing Aliased 'W'Antialiased 'W' digitized Analog lineDigital line: aliasing occurs jaggies.

168 471 Computer Graphics, KKU. Lecture 9

7

Antialiasing in Practice

(a) (b)