Arcs and Curves: Lecture 04: Digitization of Curves
Arcs and Curves: Lecture 04: Digitization of Curves
Grid-Intersection Digitization
(published in 1965)
y = a(xi + 1) + b
h1 = y − yi = a(xi + 1) + b − yi
h2 = (yi + 1) − y = yi + 1 − a(xi + 1) − b
h1 − h2 = 2a(xi + 1) − 2yi + 2b − 1
ei = 2dy · xi − 2dx · yi + b0
ei+1 = 2dy · xi+1 − 2dx · yi+1 + b0
Thus
Directional Encoding
chain code:
length of chain:
length of polygonal curve:
length of chain:
length of polygonal curve:
If there are two closest grid points, we choose the upper one
(consistent with our previous assumptions).
(bac denotes the largest integer less or equal to a.)
The differences between successive In s define the following
(infinite) chain codes ia,b , with
√ √ √
length of polygonal curve: 2/4, 4 2/8, and (8 2 + 1)/16
Coursework