Архитектура Аудит Военная наука Иностранные языки Медицина Металлургия Метрология Образование Политология Производство Психология Стандартизация Технологии |
Cartesian Fourier Descriptors
Fourier descriptors, like the chain code, use only the boundary of the ob- ject. In contrast to the chain code, Fourier descriptors do not describe curves on a discrete grid. They can be formulated for continuous or sam- pled curves. Consider the closed boundary curve sketched in Fig. 19.6. We can describe the boundary curve in a parametric description by tak- T ing the path length p from a starting point Σ x0, y0Σ as a parameter. 19.4 Fourier Descriptors 503
(x0, y0) 1 0 P-1 2 P-2 3 4 5
Figure 19.6: Illustration of a parametric representation of a closed curve. The T parameter p is the path length from the starting point Σ x0, y0Σ in the counter- clockwise direction. An equidistant sampling of the curve with P points is also shown.
It is not easy to generate a boundary curve with equidistant samples. Discrete boundary curves, like the chain code, have signifi cant disad- vantages. In the 8-neighborhood, the samples are not equidistant. In the 4-neighborhood, the samples are equidistant, but the boundary is jagged because the pieces of the boundary curve can only go in hori- zontal or vertical directions. Therefore, the perimeter tends to be too long. Consequently, it does not seem a good idea to form a continuous boundary curve from points on a regular grid. The only alternative is to extract subpixel-accurate object boundary curves directly from the gray scale images. But this is not an easy task. Thus, the accurate determi- nation of Fourier descriptors from contours in images still remains a challenging research problem.
z(p + nP) = z(p) n ∈ Z. (19.7) A cyclic or periodic curve can be expanded in a Fourier series (see also Table 2.1). The coeffi cients of the Fourier series are given by
zˆ v = 1 ∫ z(p) exp. − 2π ivpΣ dp v ∈ Z. (19.8)
z(p) = v=.− ∞ zˆ v exp. 2π ivpΣ . (19.9) 504 19 Shape Presentation and Analysis
z(p)dp = 1 ∫ x(p)dp + i ∫
y(p)dp (19.10)
r1 exp(iϕ 1). The coeffi cient zˆ − 1 also results in a circle
but this circle is traced in the opposite direction (clockwise). With both complex coeffi cients together — in total four parameters — an ellipse can be formed with arbitrary half-axes a and b, orientation ϑ of the main axis a, and starting angle ϕ 0 on the ellipses. As an example, we take ϕ 1 = ϕ − 1 = 0. Then,
This curve has the parametric form of an ellipse where the axes lie along the coordinate axes and the starting point is on the x axis. From this discussion it is obvious that Fourier descriptors must al- ways be paired. The pairing of higher-order coeffi cients also results in ellipses. These ellipses, however, are cycled n times. Added to the basic ellipse of the fi rst pair, this means that the higher-order Fourier descrip- tors add more and more details to the boundary curve. For further illustration, the reconstruction of the letters T and L is shown with an increasing number of Fourier descriptors (Fig. 19.7). The example show that only a few coeffi cients are required to describe even quite complex shapes. Fourier descriptors can also be computed easily from sampled bound- aries zn. If the perimeter of the closed curve is P, N samples must be taken at equal distances of P /N (Fig. 19.6). Then, N− 1 zˆ v = 1 . zn exp.− 2π inv Σ . (19.14) N n=0 N All other equations are valid also for sampled boundaries. The sam- pling has just changed the Fourier series to a discrete Fourier transform with only N wave number coeffi cients that run from 0 to N − 1 or from − N/2 to N/2 − 1 (see also Table 2.1). 19.4 Fourier Descriptors 505 b
Figure 19.7: Reconstruction of shape of a the letter “L” and b the letter “T” with 2, 3, 4, and 8 Fourier descriptor pairs.
|
Последнее изменение этой страницы: 2019-05-04; Просмотров: 234; Нарушение авторского права страницы