Lecture 2
Lecture 2
Lecture 2
Lecture 2
Image formation
◼ There are two parts to the image formation
process:
pixel grid
a grid of squares,
each of which
contains a single
color
each square is
called a pixel (for
picture element)
Pixel Location: p = (r , c)
Pixel Value: I(p) = I(r , c) Pixel : [ p, I(p)]
f(x, y)
◼ By definition: r(x, y) =
i(x, y)
f(x, y) = r(x, y)i(x, y)
pixel grid
◼ How many samples and gray levels are required for a “good”
approximation?
◼ Example:
◼ Construct a chart with vertical lines of width W, with the
space between lines also having width W
◼ One line and its adjacent space- Line pair, width 2W,
therefore 1/2W line pairs per unit distance
◼ Examples:
◼ Newspapers 75dpi
◼ Magazines 133dpi
◼ Glossy brochures 175dpi 150dpi 72dpi
◼ Neighbors of a pixel:
◼ A pixel p at (x,y) has 4 horizontal/vertical neighbors at
◼ (x+1,y), (x-1,y), (x, y+1) and (x, y-1)
◼ called the 4-neighbors of p: N4(p)
◼ A pixel p at (x,y) has 4 diagonal neighbors at
◼ (x+1,y+1), (x+1,y-1), (x-1, y+1) and (x-1, y-1)
◼ called the diagonal-neighbors of p: ND(p)
◼ The 4-neighbors and the diagonal-neighbors of p are
called the 8-neighbors of p: N8(p)
4-Neighbors
0 1
1 1