Known approaches to compare piecewise linear functions that are defined on differ-
ent discrete sets use hash functions [2]. They have quadratic computational complexity
at worst and so are too computationally intensive.
Our method based on constructing of general Delaunay triangulations for union of
two discrete sets. As the merging process can be implemented in linear time ([8]) then
the total time to compute the proposed measure is comparable with time to construct
Delaunay triangulation, i.e. O(N log N ), where N — the total amount of points in two
sets. Consequently, the proposed method allows to avoid quadratic search in surface
comparison that determines its advantage and novelty.
This paper is organized as follows. In section 2, we describe problem definition
and introduce the proposed disparity measure. In section 3, each of stages of the pro-
posed algorithm for disparity measure calculation is described. In section 4 we discuss
application of the proposed method for 3D face model comparison. The results of com-
putational experiments are given in section 5.
2 Problem Definition and Basic Ideas
A finite point set G : {(x
i
, y
i
) ∈ R
2
|i = 1, . . . , N }, N ≥ 3 is called a nonregular
two-dimensional mesh.
We consider the following problem definition.
Let G
1
= {(x
i
1
, y
i
1
)}
N
1
i=1
and G
2
= {(x
2
1
, y
2
1
)}
N
2
i=1
be nonregular 2D meshes. Sup-
pose F
1
and F
2
are the mesh functions corresponded to G
1
and G
2
, i.e.
F
1
= {f
i
1
}
i=1
N
1
, f
i
1
= F
1
(x
i
1
, y
i
1
); F
2
= {f
i
2
}
i=1
N
2
, f
i
2
= F
2
(x
i
2
, y
i
2
).
It is required to introduce a metrics for comparison such mesh functions and to
design a numerically efficient algorithm to compute it.
Let R be a rectangle in R
2
. Let µ(x, y) be a function that defines weight of frag-
ments of R in accordance with significance of function similarity on each fragment.
By G denote the set of nonregular 2D meshes contained in R. Consider a set F of
single-valued functions on meshes from G.
Now we introduce a proximity function ρ over set F.
By Conv(G) denote the convex hull of G. Consider F
1
, F
2
∈ F. Let
ˆ
F
1
and
ˆ
F
2
be
continuous functions defined on Conv(G
1
) ∩Conv(G
2
) such that
ˆ
F
1
≡ F
1
on G
1
and
ˆ
F
2
≡ F
2
on G
2
. By T denote the Delaunay triangulation of mesh G
1
∪ G
2
. We will
say that this mesh is the general mesh and T is the general Delaunay triangulation. Let
A, B, C be points of the general mesh. By definition, put
V (A, B, C, F
1
, F
2
) =
ZZ
△ABC
ˆ
F
1
(x, y) −
ˆ
F
2
(x, y)
µ(x, y) dxdy. (1)
The value of V indicates a weighted volume between two surfaces defined by func-
tions F
1
and F
2
over triangle △ABC.
We are interested in case when Conv(G
1
)∩Conv(G
2
) 6= ∅. Otherwise two objects
should be reduced to such coordinate system that allows them to be comparable.
44