Kacper Pluta, Technion – Israel Institute of Technology, Center for Graphics and Geometric Computing
Technion 04/11/2018
Y. Kenmochi
CNRS, France
a joint work with
J.-O. Lachaud
University of Savoy, France
A classical problem of digital geometry is to estimate geometric properties of digitized shapes without any knowledge about the underlying continuous shape.
Definition (Multigrid Discrete Space)
Let
Figure comes from R. Klette & A. Rosenfeld: Digital Geometry: Geometrical Mehods For Digital Picture Analysis, Morgan Kaufmann 2004
be a grid resolution and
, then
is the
set of n-D discrete points in a grid of the resolution h.
The information about the tangent orientation at the integer points of the skeleton allows for local measurements.
Approximation techniques in the Euclidean space
Methods which work directly in discrete spaces
+ very good accuracy
- can be costly
- poor behavior on sharp corners
+ good accuracy
+ simple and fast
- often poor behavior on corrupted/noisy curves
Some methods fix size of the computational window globally. Therefore, they cannot adapt to local geometry of the shape.
Some methods fix size of the computational window globally. Change of the resolution involves change of the window size.
The size of the computational window can be adopted to the local curve's geometry thanks to the notion of Digital Straight Segments.
3D Digital Curve
Any set
such that
is called a 3D digital k-curve iff there
such that
and for any
we have
are possibly two points
Adjacency Set
Given a point
the adjacency set of
is defined as:
where
stands for the Euclidean distance function and k for an
adjacency relation i.e., 6 (face), 18 (edge), 26 (vertex).
A digital 26-curve i.e.,
An arithmetic line of parameters
2D Arithmetic Line
and of arithmetic thickness
is defined as
where
and
Theorem [Reveillès 1991]
Let
be an arithmetic line, then:
1. If
then
is not connected,
2. If
then
is 8-connected,
3. If
then
is 4-connected.
1.
2.
3.
Definition (Remainder)
The remainder associated to a point
of
is an
integer value defined as
then
is called a
lower leaning point
then
called an upper leaning point
is
Let
with
By adding a point
connected to M such that
we verify if
is an 8-conneted line segment.
Theorem [Debled-Rennesson and Reveillès, 1995]
We have
1. if
then M' is an 8-connected line segment
2. if
or
then M' is not 8-connected
3. if
then M' is an 8-connected line segment
4. if
then M' is an 8-connected line
1.
4.
It is then possible to decompose a sequence of k-connected points into digital k-connected line segments.
a 8-connected digital curve i.e., a sequence of points from 0 to 60.
Figure comes from I. Debled-Rennesson: Reconnaissance des droites et plans discrets, PhD Thesis 1995
Figure comes from I. Debled-Rennesson: Reconnaissance des droites et plans discrets, PhD Thesis 1995
Over the years several discrete tangent estimators based on a digital line recognition has been proposed.
They all try to make the right balance between the longest and the most centered DSS around a point of interest.
Figure comes from I. Debled-Rennesson: Reconnaissance des droites et plans discrets, PhD Thesis 1995
A set C of 3D integer points is functional along an axis (say x) if the points of C can be sorted such that the x-component increase by one between two consecutive points.
The projections and have the same cardinal as C i.e.,
these projections are bijective.
Definition
Proposition
From now on we consider a 3D 26-connected curve
C, which is functional.
Any 26-connected 3D digital curve can be decomposed into functional parts of size at least two with an overlap of at least one point.
In the 3D case, M(i, j) is verified iff two of the three projections of C
on the planes
and
are 2D digital line segments.
M is 26-connected iff the two valid projections are 8-connected.
A digital line segment M is maximal if it cannot be extended anymore from any end.
Definition
Let M be a 3D maximal segment along C. Then there exists one 2D maximal DSS along and a 2D maximal DSS along such that M is the intersection of their back projection onto C.
Proposition
For any digital curve C, there is a unique set
segments called the tangential cover [Feschet and Tougne 1999].
of maximal
The set of maximal segments going through a point
is called
the pencil of maximal segments at
and defined as
The eccentricity
of a point
with respect to a maximal
segment
is the relative position between the extremities of
such that
The
direction
at the point
of a digital k-curve is defined
as a weighted combination of the vectors
of the covering
maximal segments
such that
A function
maps from
to
with
and
elsewhere.
Continuous shape
and its digitization
with respect to h.
Definition [Coeurjolly et al. 12]
The estimator
is multigrid-convergent for a family of shapes
iff
for any
there exists a grid step
such that the
estimate
is defined for all
with
and for any
with
Where
is a function defining the speed of convergence of
Any digital point sufficiently close to the point of the interest has its estimated geometric quantity, which tends toward the expected local value of the geometric function as h tends toward 0.
towards
at a point
Theorem [Lachaud et al. 07]
The 2D MST estimator is multigrid convergent toward the tangent direction along the boundary of any convex shape with three time differentiable boundary and continuous curvature. An upper bound for its average rate of convergence is , as the grid step h tends toward 0.
For the details see [Lachaud et al. 07]
h
h
Average Absolute Error
Average Absolute Error
For the details see [Coeurjolly et al. 12]
The plots comes from [Coeurjolly et al. 12]
For the details see [Coeurjolly et al. 12]
h
h
Average Absolute Error
Average Absolute Error
The plots comes from [Coeurjolly et al. 12]
In contrast to their 2D counterparts, 3D maximal segments can be short, even for very small h. This poses a problem for proving the convergence of 3D MST.
Bad News
Good News
We can derive two other methods for which we can prove the bound of average convergence, and then experimentally compare the convergence rate of the three methods.
Proposition
Let us denote by the Euclidean length of the curve .
Then the asymptotic average digital length of 3D maximal segments along h-digitizations of with gridstep h follows
Proposition
For any point of a functional curve C, there exists some 3D maximal segment such that:
where is the digital length of the shortest 2D maximal segments along the two valid projections.
Filtered 3D MST
Using the previous proposition we discard all the 3D maximal
segments with length
3D DSS is considered as being at the beginning (resp. end) of a 3D DSS that is not further away than
Then, each point not covered by a
3D MST by 2D
We consider two valid projection with respect to the main axis. We use 2D MST on the 2D projective curves, and finally we combine the two 2D estimations of the tangent directions into a 3D tangent direction at each 3D point.
Theorem
The 3D tangent estimator by combination of 2D maximal segments, and the 3D tangent estimator by filtered 3D maximal segments are both multigrid convergent toward the 3D tangent. An upper bound for their average rate of convergence is , as the grid step h tends toward 0.
We studied a 3D tangent estimator that is fast, simple and has good asymptotic behaviors
The source code has been submitted to DGtal C++ library.
I. Debled-Rennesson and J.-P. Reveillès: A linear algorithm for segmentation of digital curves, International Journal of Pattern Recognition and Artificial Intelligence, vol. 9(6), 1995.
F. Feschet, L. Tougne: Optimal time computation of the tangent of a discrete curve: application to the curvature, in: Proceedings of DGCI’99, pp. 31–40, Springer 1999
J.-O. Lachaud, A. Vialard, F. de Vieilleville: Fast, accurate and convergent tangent estimation on digital contours, Image and Vision Computing, pp. 1572-1587, vol. 25(10), 2007
D. Coeurjolly, J.-O. Lachaud, T. Roussillon: Multigrid Convergence of Discrete Geometric Estimators, Lecture Notes in Computational Vision and Biomechanics, pp. 395-424, vol. 2, Springer 2012