Professional Documents
Culture Documents
Computer Graphics
Computer Graphics
Lecture 2
Achromatic Light
Gamma correction
We must consider the nonlinearities CRT monitors
Ii - intensity of pixel
Vi - value specified for the pixel
Gamma correction
Ui = K1*Vi
Ni = K1*Ui
Ii = K1*Nigamma
Ii =K*Vigamma
Vi = round((Ii/K)1/gamma)
K - depends on amount of bit planes in frame buffer
gamma = 2.2 ...2.5 for most CRT
Vi = round((2n-1)*(exp(lnIi/gamma)))
Mach bands
the intensity at the vicinities of the edges is
overestimated for light values and
underestimated for dark values.
Halftoning
Traditional printing
Traditional printing
Digital printing
Random Dithering
This is the bubble sort of dithering
algorithms. It is not really acceptable as a
production method, but it is very simple to
describe and implement. For each value in
the image, simply generate a random number
1..256; if it is greater than the image value at
that point, plot the point white, otherwise
plot it black.
Random Dithering
Ordered Dithering
1) Image Array is smaller than the display array
- multiply displays pixels are used for one image
pixel
- n x n - k-level pixels provide n2 *(k-1)+1
intensities
Ordered Dithering
Original image
Ordered dithering
Original image
Floyd-Steinberg
dithering