Professional Documents
Culture Documents
Raster Graphics
Display Hardware
How are images display?
Raster Graphics Systems
How are imaging system organized
Output Primitives
How can we describe shapes with primitives?
Color Models
How can we describe and represent colors?
pk 1 pk 2y 2x yk 1 yk
Decision parameter of a starting pixel (x0, y0)
p0 2y x0 2x y0 2y x 2b 1
2y x0 2x mx0 b 2y x 2b 1
2y x0 2y x0 2bx 2y 2bx x
p0 2y x
cgvr.korea.ac.kr Graphics Lab @ Korea University
Bresenham’s Algorithm(cont.)
CGVR
Filling Polygons
Scan-line fill algorithm Boundary fill algorithm
Inside-Outside tests
11
1 2 3 4 5 6 7 8 9 10 5 6 7 8 9
4312
y 1 2
2
y’
1 1
B
yC yB xC 1/mCB
C
C’ E yD yC’ xD 1/mDC yE x D 1/mDE
D
yA yE xA 1/mAE yB xA 1/mAB
A
1
Scan-Line Number 0
cgvr.korea.ac.kr Graphics Lab @ Korea University
Inside-Outside Tests
CGVR
Self-Intersections
Odd-Even rule Nonzero winding
number rule
exterior
interior
Aliasing
Undersampling: Low-frequency sampling
original
sample
reconstruct
Supersampling (Postfiltering)
Pixel-weighting masks
Area Sampling (Prefiltering)
Pixel Phasing
Shift the display location of pixel areas
Micropositioning the electron beam in relation to obje
ct geometry
Subpixels
Increase resolution
22
(10, 20): Maximum Intensity
21
(11, 21): Next Highest Intensity
(11, 20): Lowest Intensity
20
10 11 12
Subpixels
Increase resolution
22
(10, 20): Maximum Intensity
21
(11, 21): Next Highest Intensity
(11, 20): Lowest Intensity
20
10 11 12
1 2 1
2 4 2
1 2 1
10 11 12
cgvr.korea.ac.kr Graphics Lab @ Korea University
Filtering Techniques
CGVR
Display Hardware
How are images display?
Raster Graphics Systems
How are imaging system organized?
Output Primitives
How can we describe shapes with primitives?
Color Models
How can we describe and represent colors?
Tristimulus Theory of
Color
Spectral-response fun
ctions of each of the th
ree types of cones on t
he human retina
RGB
XYZ
CMY
HSV
Others
(white)
(green)
(red)
(blue)
H S V Color
0 1.0 1.0 Red
60 1.0 1.0 Yellow
120 1.0 1.0 Green
180 1.0 1.0 Cyan
240 1.0 1.0 Blue
300 1.0 1.0 Magenta
* 0.0 1.0 White
* 0.0 0.5 Gray
* * 0.0 Black
cgvr.korea.ac.kr Graphics Lab @ Korea University
HSV Color Model
CGVR