Algorithm for automatically fitting digitized curves thus diq for convenience
XI.8 AN ALGORITHM FOR AUTOMATICALLY FITTING DIGITIZED CURVES Thus,
∂S | = | n ∑ |
|
] | ||
---|---|---|---|---|---|---|
|
i=1 | |||||
3 B1 |
|
|||||
Q | n ∑i=1 |
di |
|
(6) | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Expanding Q(ui), | |||||||||||||||||||
|
Q | ||||||||||||||||||
= | n ∑i=1 |
Ai,1 | |||||||||||||||||
= | n ∑i=1 |
Ai,1 | ⋅V0B0 3 ui ( )+α1 | n ∑i=1 |
Ai,1 | + | n ∑i=1 |
Ai,1 | |||||||||||
+α 2 | n ∑i=1 |
Ai,1 | ⋅Ai,2+ | n ∑i=1 |
Ai,1 |
|
|
∑i=1 | Ai,1 | α 1+ |
| Ai,1 | ⋅Ai,2 |
|
) | ) |
|
619 | |||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
= | ( | ||||||||||||
GRAPHICS GEMS I Edited by ANDREW S. GLASSNER |
|
Ai,1⋅Ai,2 |
|
∑i=1 | Ai,2 | ) | ) | |||||
---|---|---|---|---|---|---|---|---|---|---|---|
= | ( |
|
If we represent the previous two equations by
we need only solve | ||||||||
---|---|---|---|---|---|---|---|---|
for α1 and α2. If we let | ( | c1,1c2,2 | )α 2 | )=X2 | ||||
)=C1C2 | ||||||||
|
|
(α1 | )=� |
---|
α 1=det �C2 det C1C2 ( ( | 620 | |
---|---|---|
α 1=det C1�det C1C2 ( ( |
|
|
GRAPHICS GEMS I Edited by ANDREW S. GLASSNER |