Tangent Estimation
of 3D Digital Curves
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
Digital Geometry
Digital Geometry
Digital Geometry
A classical problem of digital geometry is to estimate geometric properties of digitized shapes without any knowledge about the underlying continuous shape.
Digital Geometry
Digital Geometry
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.
Digital Geometry in Image Processing Pipeline
Digital Geometry in Image Processing Pipeline
Digital Geometry in Image Processing Pipeline
Digital Geometry in Image Processing Pipeline
Digital Geometry in Image Processing Pipeline
The information about the tangent orientation at the integer points of the skeleton allows for local measurements.
Methods for Tangent Estimating
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
Adaptivity to Local Geometry
Some methods fix size of the computational window globally. Therefore, they cannot adapt to local geometry of the shape.
Adaptivity to Local Geometry
Some methods fix size of the computational window globally. Change of the resolution involves change of the window size.
Adaptivity to Local Geometry
The size of the computational window can be adopted to the local curve's geometry thanks to the notion of Digital Straight Segments.
What is a curve in ?
Digital Curves
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).
Digital Curves
A digital 26-curve i.e.,
The Tangent Estimation Algorithm, In Short
- Decompose the digital k-curve into digital k-line segments. Then, such line segments approximate the tangent directions at their points
- For each point of the curve estimate a discrete tangent as a weighted sum of the directions given by the the k-line segments passing through the point
The Building Blocks
Arithmetic Digital Line
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.
Arithmetic Digital Line
Definition (Remainder)
Remainder and Leaning Point
The remainder associated to a point
of
is an
integer value defined as
- When
then
is called a
lower leaning point
- When
then
called an upper leaning point
is
Arithmetic Digital Line Recognition
Let
- M(i, j) be a segment of a digital 8-line
with
- be the point of the greatest abscissa of M,
- l and l' be the lower leaning points of minimum and maximum abscissae of M,
- u and u' be the upper leaning points of minimum and maximum abscissae of M,
By adding a point
connected to M such that
we verify if
is an 8-conneted line segment.
Arithmetic Digital Line Recognition
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.
Arithmetic Digital Line Recognition
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
Arithmetic Digital Line Recognition
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.
How about 3D?
Figure comes from I. Debled-Rennesson: Reconnaissance des droites et plans discrets, PhD Thesis 1995
Curve Functionality
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
Curve Functionality
Curve Functionality
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.
3D k-digital Line Segment
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.
3D Maximal Line Segments
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
Tangent Estimation Algorithm
The Tangent Estimation Algorithm, In Short
- Decompose the digital k-curve into maximal k-line segments. Then, such line segments approximate the tangent directions at their points
- For each point of the curve estimate a discrete tangent as a weighted sum of the directions given by the the k-line segments passing through the point
Tangential Cover
For any digital curve C, there is a unique set
segments called the tangential cover [Feschet and Tougne 1999].
of maximal
Tangential Cover
Tangential Cover
The set of maximal segments going through a point
is called
the pencil of maximal segments at
and defined as
Eccentricity
The eccentricity
of a point
with respect to a maximal
segment
is the relative position between the extremities of
such that
-Maximal-segment Tangent
Estimator
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
-Functions
A function
maps from
to
with
and
elsewhere.
Multigrid Convergence
What does it mean multigrid convergent?
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
Multigrid Convergence
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.
Steps of Proving Convergence in 2D
- Maximal segments have unbounded digital length with a finer and finer resolution
- The slope of a maximal segment is then proved to tend toward the tangent direction of any point it covers
For the details see [Lachaud et al. 07]
Convergence in 2D
h
h
Average Absolute Error
Average Absolute Error
For the details see [Coeurjolly et al. 12]
The plots comes from [Coeurjolly et al. 12]
Convergence in 2D
For the details see [Coeurjolly et al. 12]
h
h
Average Absolute Error
Average Absolute Error
The plots comes from [Coeurjolly et al. 12]
How About 3D?
Properties of 3D Maximal Segments
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
Properties of 3D Maximal Segments
Properties of 3D Maximal Segments
Proposition
For any point of a functional curve C, there exists some 3D maximal segment such that:
- it is in the vicinity of
- it is long enough:
where is the digital length of the shortest 2D maximal segments along the two valid projections.
Asymptotic Properties and Multigrid Convergence
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
Asymptotic Properties and Multigrid Convergence
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.
Asymptotic Properties and Multigrid Convergence
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.
Experimental Evaluation of the Tangent Estimators
Experimental Evaluation of the Tangent Estimators
Conclusion and Perspectives
- Understand behavior of the estimator on non-functional curves
- Future improvements for noisy data e.g., skeletons obtained from segmented CT scans
- Comparison with other methods
Perspectives
We studied a 3D tangent estimator that is fast, simple and has good asymptotic behaviors
Conclusion
The source code has been submitted to DGtal C++ library.
References
- J.-P. Reveillès: Géométrie Discrète, Calcul en Nombres Entiers et Algorithmique, Habilitation à diriger des recherches, Université Louis-Pasteur, 1991, https://hal.archives-ouvertes.fr/tel-01279525
-
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
Thank you for tour Attention!
Tangent Estimation of 3D Digital Curves
By Kacper Pluta
Tangent Estimation of 3D Digital Curves
A seminary talk about 3D Lambda-maximal segment tangent estimator.
- 1,810