Professional Documents
Culture Documents
Abstract—The problem of estimating the similarity of surfaces represented as point clouds is studied. An
approach is suggested to the comparison of such surfaces based on the surface approximation by piecewise
linear functions of two variables in the Delaunay triangulations. The approach is based on the developed algo
rithm for comparison of the functions of two variables specified on various irregular sets of points. Possible
applications of this algorithm were considered such as the problems of 3D portraits comparison, e.g., prob
lems of estimation of facial asymmetry and dynamics of lower jaw movements on the basis of a 3D video
sequence of models. The performed experiments confirmed the correctness, validity, and computational effi
ciency of the proposed algorithm.
Keywords: Surface comparison, pointwise surface description, irregular meshes, mesh location in triangula
tion, 3D face comparison.
DOI: 10.1134/S1054661810040103
ISSN 10546618, Pattern Recognition and Image Analysis, 2010, Vol. 20, No. 4, pp. 495–504. © Pleiades Publishing, Ltd., 2010.
496 DYSHKANT
(a) D (b)
B
D
P
Q M Q
A M C
A
C G
Fig. 2. (a) Localization of the point in the triangulation, (b) the segment (MQ) passes through the vertex of the triangulation C.
2.2. Localizations of the Triangulations More formally, the algorithm of the localization
can be written in the following form:
At this stage the constructed triangulations are
localized in each other. At the same time, spanning (1) Select the initial triangle ΔABC. Assign it the
trees are used constructed in the nodes of each mesh. status of the current one. Find the coordinates of the
At one of the subsequent stages, i.e., that of the con intersection point of the median lines (centroid) of the
struction of the general triangulation, the algorithm of triangle: Mx = (Ax + Bx + Cx)/3; My = (Ay + By + Cy)/3.
the merging of nondivided Delaunay triangulations (2) Determine, which of the sides of the current tri
suggested by L. M. Mestetskiy and E. V. Tsarik in [18] angle is crossed by the segment [MQ]. If this item is
will be employed. This algorithm uses the minimum performed for the first time, all three sides of the cur
spanning trees of both meshes; therefore, it is just the rent triangle are checked for the intersection; other
minimum spanning trees (MSTs) that are feasible to wise, it will be sufficient to check only two sides, if the
use for the localization of the meshes in the triangula side on which the transition to the current triangle was
tion. made at the previous step.
First consider the problem of the point localization (a) Let us take that the segment [MQ] does not
in the Delaunay triangulation. cross any of the sides or crosses it at the point Q. Then
the current triangle is the sought one, and the opera
2.2.1. Problem of point location in the triangulation. tion of the algorithm is completed.
Let there be given a point Q and the triangulation T. It (b) Let the segment [MQ] cross one of the vertices
is required to define the triangle from T containing the of the current triangle. Then the transition is made to
point Q. If the point Q coincides with one of the verti the triangle adjacent to the current one at any of the
ces of the triangulation, any triangle can be indicated sides containing this vertex, and the new triangle is
incident to this vertex. If the point Q belongs to one of assigned the status of the current one. Transfer to the
the edges of the triangulation, any triangle can be indi beginning of item 2.
cated incident to this edge. If the point is beyond the
triangulation, i.e., does not belong to the convex hull (c) Let the segment [MQ] cross one of the sides of
of the set of the triangulation nodes, the point can be the triangle at an interior point. Then we transfer to
considered to belong to a certain infinite triangle, or the triangle adjacent to the current one at one side and
the triangle nearest to the point can be defined. make it current. Transfer to the beginning of item 2.
The complexity (labor intensity) of the localization
The idea of an algorithm for the calculation of the of a single point is determined by the number of trian
localization problem consists in the selection of a cer
tain initial point M, the localization of which in the gles located along the segment [MQ] and is O( N ) on
triangulation is known, and the gradual transition average and O(N) at the worst.
from M to Q along the straight line (MQ) (see Fig. 2). 2.2.2. Problem of mesh localization in the triangula
At each step, the transition is performed to the adja tion. The problem of the localization of the two
cent (adjoining to the side) triangle. Of special interest dimensional mesh G in the triangulation T will be
is the case when the segment [MQ] passes through understood as the problem of the localization of every
some vertex of the triangulation (see Fig. 2). A similar point of the mesh G in the triangulation.
algorithm was described in [6]. The algorithm of the mesh localization is proposed
Therefore, in the process of the point localization, using MST, the vertices of which are the points of the
a path of triangles from the triangulation is con given mesh (see Fig. 3).
structed, each of which (except the initial one) is adja 2.2.3.Construction of minimum spanning trees. The
cent to the previous triangle. Such a path will be called theoretical complexity of the algorithm for MST con
a localization path. In Fig. 2 the triangles of the local struction at N points is equal to O(NlogN). However,
ization path are shown by bold lines. on the basis of the Delaunay triangulation of the initial
(a) (c)
C'
B
C'
A' (b)
M M
A A(A')
C N
A' C
B'
A0 C0
A0 C0
C'
A C
B0 B0
Let a = A 'z – Az, b = B 'z – Bz, c = C 'z – Cz. In calculat the same time, the linear estimate of the complexity
ing the measure (3), F1 and F2 are compared in the tri holds true for the stage of the mesh localization in the
Delaunay triangulation of the other mesh using the min
angle ΔA0B0C0. For this purpose, all the possible cases
imum span under the uniform distribution of the mesh
of the mutual arrangement of the triangles ΔABC and points. The complexity of the algorithm for the construc
ΔA’B'C' were studied. tion of the Delaunay triangulation is O(NlogN) and is
The first case. a ≥ 0, b ≥ 0, c ≥ 0, or a ≤ 0, b ≤ 0, c ≤ 0. determinant for the proposed approach.
In this case the sought volume equals the volume of a
truncated prism: V = SΔ( a + b + c )/ 3.
The second case. Two quantities out of {a, b, c} 3. APPLICATIONS OF THE ALGORITHM:
have one sign, and the sign of the third number is dif COMPARISON OF THREEDIMENSIONAL
ferent. PORTRAITS
Without loss of generality of our considerations, it
will be assumed that a ≥ 0, c ≥ 0, and b ≤ 0. Let MN be As applications of the proposed algorithm, prob
the segment at which the triangles ΔABC and ΔA’B'C' lems were considered on the comparison of three
(see Fig. 5a) intersect. dimensional facial models obtained by the method of
In this case the sought volume will be equal to the threedimensional scanning [1]. A 3D facial model,
sum of the volumes of the pyramid and the wedge: V = generated by a threedimensional scanner, was studied
VBMNB' + VAA'MCC'N. The coordinates of the points M as a singlevalued function of two variables defined on
and N are obtained by the formulas Mt = (At a + an irregular mesh (see Fig. 6).
Bt b )/( a + b ), Nt = (Bt b + Ct c )/( b + c ) In [17], the application of the algorithm is
where t ∈ {x, y, z}. The volume of the pyramid BMNB' described for the problem of comparing threedimen
is calculated by the formula VBMNB' = HSMNB'/ 3, where sional models of faces belonging to different people.
H is the distance from the point B to the plane (MNB').
The volume of the wedge AA’MCC'N is equal to the
sum of the volumes of the two pyramids (see Fig. 5b) 3.1.Model Normalization in the System of Coordinates
VAA'MCC'N = VMAA'C'C + VNMCC', the volumes of which
can readily be calculated. In the considered applications, at the first stage of
The third case. One of the quantities {a, b, c} equals face comparison preprocessing is performed, i.e., the
zero, and the remaining two have different signs. In model normalization in the system of coordinates.
this case the sought volume equals the sum of the vol Each of the models is transformed to the standard sys
umes of two triangular pyramids (see Fig. 5c): V = tem of coordinates, for which the following conditions
VBAMB' + VMAC'C. are fulfilled: (a) the axis Oz goes along the axis of sight
2.6.Estimate of the Computational Complexity of and directed to the camera, (b) the axis Oy goes along
the Algorithm the face and is directed from the chin to the forehead,
The experimental estimates show that each of the (c) the axis Ox goes across the face from the right to the
stages, with the exception of the triangulation con left, (d) the origin of coordinates satisfies the following
struction, is asymptotically performed in time linear system (the summation is performed over all the points
with respect to the number of nodes in the meshes. At (x, y) on which the function of the model is defined):
Fig. 6. On the left is the triangulation of a regular mesh, on the right is the triangulation of an irregular mesh.
As can be seen from Table 1, one comparison of stage of which the initial mesh is reduced to a regular
face models can be carried out in less than half a sec one by the interpolation method. The experiments
ond. In solving the verification problem (onetoone show that the method retaining the initial irregularity
comparison) when one of the models is in the base, the of the mesh is more efficient.
time can be reduced by half at the expense of the con In addition, on the basis of 3D facial models,
struction of the triangulation and MST at the prepro experiments were carried out making it possible to
cessing stage. estimate the approximation accuracy of the scanned
In Tables 2–4 the time consumption is shown for surfaces. In [3], P. Cignoni et al. considered in detail
some of the stages of the algorithm for various num the problem of the accuracy loss under the transition
bers of points in the initial models. As is obvious from to a simplified mesh. By comparing the initial triangu
the third columns of these tables, the labor intensity lar mesh with a simplified mesh obtained by the trun
(complexity) of the implementation of these stages is cation of some random points, it can be determined to
linear. what extent the model can be simplified without a sig
nificant loss of accuracy with respect to measure (3)
Experiments were also performed comparing the for the specific application. In [16], it is shown how
proposed method with the technique for the calcula the accuracy of the facial model approximation affects
tion of the similar dissimilarity measure, at the first the asymmetry estimation.
Table 1. Time consumption for various stages of the algo Table 2. Time of MST construction from the Delaunay tri
rithm in the calculation of the volume of the difference angulation by the Cheriton and Tarjan algorithm with the
between two facial models. The number of points in both use of Fibonacci heaps
meshes is N1 ≈ N2 ≈ 3000
Number Time (t)
N/t
Stage of the algorithm Time (s) of points (N) of construction, s
10000 0.453 22075
Construction of two triangulations 0.124
20000 0.906 22075
Construction of two MST 0.203 30000 1.312 22865
Localization of the triangulations in each other 0.015 40000 1.812 22075
50000 2.156 23191
Interpolation of the functions <0.001 60000 2.562 23419
Construction of the general triangulation 0.031 70000 3.156 22179
80000 3.531 22656
Calculation of the volume of the difference 0.031
90000 4.093 21988
Total time 0.405 100000 4.468 22381
Table 3. Time of the localization of one mesh in the trian Applications of the algorithm are considered for
gles of the triangulation of the other mesh problems of the analysis of human face models
obtained on the basis of threedimensional scanning.
Number of points
of the mesh G1(N1)
Time, s (t) N1/t Computational experiments have been performed on
highdimensionality problems for each stage of the
5000 0.015 3 × 10–6 algorithm for the comparison of monotonic surfaces
10000 0.031 3.1 × 10–6 and for an applied problem on the comparison of
threedimensional facial models.
15000 0.046 3.0667 × 10–6
The performed experiments confirmed the validity
20000 0.078 3.9 × 10–6 and correctness of the proposed algorithm operation.
25000 0.093 3.72 × 10–6
30000 0.098 3.2667 × 10–6
ACKNOWLEDGMENTS
35000 0.109 3.1143 × 10–6
This work was supported by the Russian Founda
40000 0.14 3.5 × 10–6
tion for Basic Research, project nos. 080100670 and
45000 0.156 3.4667 × 10–6 080700305.
50000 0.171 3.42 × 10–6
55000 0.176 3.2 × 10–6 REFERENCES
60000 0.187 3.1167 × 10–6
1. http://artecgroup.com, Artec Group Company, 3D
65000 0.203 3.1231 × 10–6 Scanning Technologies.
70000 0.212 3.0286 × 10–6 2. D. Cheriton and R. E. Trajan, “Finding Minimum
75000 0.234 3.12 × 10–6 Spanning Trees,” SIAM J. Comput. 5 (4), 724–742
(1976).
80000 0.25 3.125 × 10–6
3. P. Cignoni, C. Rocchini, and R. Scopingo, “Metro:
85000 0.256 3.0118 × 10–6 Measuring Error on Simplified Surfaces,” Comput.
90000 0.265 2.9444 × 10–6 Graphics Forum 17 (2), 167–174 (1998).
95000 0.296 3.1158 × 10–6 4. T. H. Cormen, C. E. Leiserson, R. L. Rivest, and
C. Stein, Introduction to Algorithms, 2nd ed. (MIT Press
100000 0.312 3.12 × 10–6 and McGraw–Hill, 2001).
5. N. Dyshkant and L. Mestetskiy, “Estimation of Asym
Table 4. Time consumption for the linear interpolation of metry in 3D Face Models,” in Proc. Int. Conf. on Com
both functions puter Vision Theory and Applications (VISAPP 2009)
(Lisbon, 2009), pp. 402–405.
Number of points of the 6. E. Mucke and I. Z. B. Saias, “Fast Randomized Point
Time, s (t) (N1 + N2)/t
meshes G1 and G2 (N1 + N2) Location without Preprocessing in Two– and Three–
Dimensional Delaunay Triangulation,” in Proc. 11th
50000 0.015 3333333.33 Ann. Symp. on Computational Geometry (Los Alamos,
100000 0.031 3225806.45 1996).
150000 0.046 3260869.56 7. T. Fan, G. Medioni, and R. Nevatia, “Recognizing 3D
Objects Using Surface Descriptions,” IEEE PAMI 11
200000 0.062 3225806.45
(11), 1140–1157 (1989).
8. M. Fredman and R. Tarjan, Data Structures and Net
work Algorithms (Society for Industrial and Applied
CONCLUSIONS Mathematics, Philadelphia, 1983).
A new algorithm is proposed for construction of the 9. T. Gatzke, C. Grimm, M. Garland, and S. Zelinka,
“Curvature Maps for Local Shape Comparison,” in Int.
similarity measure of monotonic surfaces represented Conf. on Shape Modeling and Applications (SMI) (Cam
as point clouds, based on the approximation of the bridge, MA, 2005).
surface by piecewiselinear functions of two variables 10. A. Gruen and D. Akca, “Least Squares 3D Surface and
in the Delaunay triangulations. The algorithm enables Curve Matching,” ISPRS J. Photogram. Remote Sens.
the comparison of the functions defined on two differ 59, 151–174 (2005).
ent sets of points. A semimetric is proposed for the 11. C. Mccool, J. Cook, V. Chandran, and S. Sridharan,
comparison of the surfaces, which can be adapted to “Feature Modeling of PCA Difference Vectors of 2D
any specific application, e.g., by the introduction of and 3D Face Recognition,” in IEEE Int. Conf. on Video
and Signal Based Surveillance, AVSS’06 (Sydney, Nov.
the measure on the surface. Therefore, the offered 2006).
method presents a mathematical apparatus for the 12. T. Schenk, “Fibonacci Heaps and Their Uses in
construction of general and applied measures for the Improved Network Optimization Algorithms,” JACM
comparison of surfaces. 34 (3), 596–615 (1987).
13. T. Schenk, “Photogrammetry and Laser Altimetry,” in in Proc. Int. Conf. GraphiCon’04 Computer Graphics
Proc. Workshop on Mapping Surface Structure and (Moscow, 2004).
Topography by Airborne and Spaceborne Lasers (La 19. F. P. Preparata and M. I. Shamos, Computational Geom
Jolla, CA, Nov. 9–11 1999). etry: An Introduction (SpringerVerlag, 1985; Mir, Mos
14. R. Tarjan, “Fibonacci Heaps and Their Uses in cow, 1989).
Improved Network Optimizations Algorithms,” J. Assoc. 20. A. V. Skvortsov, “A Survey of Algorithms for Construct
Comput. Mach. 34, No. 3 (1987). ing a Delaunay Triangulation,” “Numerical Methods
15. D. V. Gordeev and N. F. Dyshkant, “Modeling of Jaw and Programming, No. 3 (2002).
Movement Dynamics during Mastication according to
the Series of 3D Images,” in Proc. 19th Int. Conf. on Natalia F. Dyshkant. Born in
Computer Graphics and Vision “GraphiCon’2009” (Mos 1987. Graduated from Moscow State
cow, 2009), pp. 348–352. University, Department of Computa
16. N. F. Dyshkant, “Estimation of Jaw Mimic Dynamics tional Mathematics and Cybernetics
during Mastication according to 3D Imagery,” in Proc. in 2008. Postgraduate student of the
Conf. “Lomonosov–2009” (Moscow, 2009), p. 28. Chair of Mathematical Methods for
Forecasting, Department of Compu
17. N. F. Dyshkant and L. M. Mestetskiy, “Comparison of tational Mathematics and Cybernet
3D Portraits during Faces Recognition,” in Proc. All– ics. Scientific interests: pattern rec
Russian Conf. “Mathematical Methods of Pattern Recog ognition, data mining, machine
nition–13” (Zelenogorsk, the Leningradskaya Region, learning, computational geometry,
2007). image processing and analysis, imag
18. L. M. Mestetskiy and E. V. Tsarik, “Delaunay Triangu ing systems, comparison of the shapes of threedimensional
lation: Recursion without Space Division of Vertices,” objects. Author of 5 papers.