Abstract
In this paper, we apply a scale space analysis method to digital geometry. We deal with the reconstruction of Euclidean polylines controlling the size of pixels in discrete space. Numerical examples show that the size of pixels of digital geometry processes the scale for the hierarchical reconstruction of Euclidean objects from digital objects.
Access provided by Autonomous University of Puebla. Download conference paper PDF
Similar content being viewed by others
1 Introduction
In this paper, we apply a scale space analysis method to digital geometry [1,2,3]. Linear digital geometry on a plane mainly deals with two problems: (1) the generation of a string of pixels from polylines and (2) the reconstruction of polylines from a string of pixels. The string generated in the first problem is called a digital object. The second problem is called Euclidean reconstruction [1,2,3] in digital geometry. Therefore, digital and discrete geometry deals with mathematical relations between the generation of digital objects and the reconstruction of Euclidean objects from digital objects.
We deal with Euclidean reconstruction if the size of pixels varies. We numerically show that the size of pixels in digital expression governs the scale in the hierarchical expression for the reconstruction of Euclidean objects. In digital geometry, there are three types of local structure of strings: naive, standard and supercover [1,2,3]. We deal with supercover [3, 4] for the string expression constructed from Euclidean polylines.
Two-dimensional digital geometry deals with geometric objects defined on the equi-spaced grid system Furthermore, objects in digital geometry are collections of pixels centred at grid points. Therefore, since digital geometry is an application of interval analysis to geometry, each point is dealt with as a square centred at a grid point. On the other hand, the \(\alpha \)-shape method [5] is dealt with a point as a small circle centred at the point for geometric processing with rounding errors [6, 7], As an analogue of the \(\alpha \)-shape method to digital geometry, we introduce \(\alpha \)-digital geometry, which deals with various sizes of pixels. An extension of the geometric properties of pixels in digital geometry is the isothetic irregular grid system geometry. In the irregular grid system geometry, digital images are expressed by isothetic rectangles [4, 9, 10]. The irregular grid system geometry has advantages for the expression and analysis of digital images, since for smooth parts on the boundary of an object, the less numbers of the isothetic rectangles are expected for image expressions.
The curve shorting flow [11,12,13] is used for shape retrievals since the flow extracts dominant local features from the boundary curves of objects. The proposing method extracts the local features by reducing the number of edges in polylines extracted from the digital boundary of digitised objects on a plane.
2 Pixels and Discrete Object
Setting \(\boldsymbol{n}=(m,n)^\top \) to be a point in \(\textbf{Z}^2\), a square,
for \(\boldsymbol{x}=(x,y)^\top \) is called a pixel of \(\textbf{R}^2\) centred at point \(\boldsymbol{n}\), where \(|\boldsymbol{x}|_\infty =\max (|x|,|y|)\) is the infinity norm \(\ell _\infty \) of \(\textbf{R}^2\).
Definition 1
For \(\boldsymbol{n}=(m,n)^\top \),
is an \(\alpha \)-pixel of \(\textbf{R}^2\) centred at point \(\boldsymbol{n}\in \textbf{Z}^2\).
Therefore, the pixels are 1-pixels. We call the 1-pixels simply pixels. Furthermore, we set \(\lim _{\alpha \rightarrow 0}{} \textbf{p}^\alpha (\boldsymbol{x})=\boldsymbol{x}\)
We define the connectivity of points in \(\textbf{Z}^2\).
Definition 2
For \(\boldsymbol{x}=(x,y)^\top \in \textbf{Z}^2\), the set \(\textbf{N}(\boldsymbol{x})=\{(x\pm 1,y)^\top , (x,y\pm 1)^\top \}\) is the four neighbourhoods of \(\boldsymbol{x}\).
Definition 3
If \(\boldsymbol{y}\in \textbf{N}(\boldsymbol{x})\), \(\boldsymbol{y}\) is four connected to \(\boldsymbol{x}\) and described as \(\boldsymbol{x}\sim \boldsymbol{y}\).
Therefore, a pair points \(\boldsymbol{x}\) and \(\boldsymbol{y}\) in \(\textbf{Z}^2\) are four connected, the pair of pixels \(\textbf{p}(\boldsymbol{x})\) and \(\textbf{p}(\boldsymbol{y})\) shares an edge. We describe \(\textbf{P}(\boldsymbol{x})\sim \textbf{P}(\boldsymbol{y})\) if \(\boldsymbol{x}\sim \boldsymbol{y}\). Therefore, for the collection of centre points \(\textbf{p}=\{\boldsymbol{x}_1, \boldsymbol{x}_2,\cdots , \boldsymbol{x}_n\}\), if the connection relations \(\boldsymbol{x}_1\sim \boldsymbol{x}_2\sim \cdots \sim \boldsymbol{x}_n\) are satisfied elements in a collection of pixels \(\textbf{P}=\{\textbf{p}_1, \textbf{p}_2,\cdots , \textbf{p}_n\}\) satisfy the connection property such that \(\textbf{p}_1\sim \textbf{p}_2\sim \cdots \sim \textbf{p}_n\), We call the collection of pixels \(\textbf{P}\) four-connected objects.
Definition 4
If pixels in the collection of four-connected pixels \(\textbf{P}=\{\textbf{p}\}_{i=1}^n\) are replaced with \(\alpha \)-pixels, we call the object an \(\alpha \)-object and express it as \(\textbf{P}^\alpha \).
Definition 5
If the \(\alpha \)-object \(\textbf{P}^\alpha \) is generated from a string of \(\alpha \)-pixels, we call this object an \(\alpha \)-string.
Definition 6
We express the \(\alpha \)-string generated from string \(\textbf{S}\) as \(\textbf{S}^\alpha \).
Next, we define the supercover of sample points.
Definition 7
For \(a,b,\mu \in \textbf{Z}\) and \(\omega =|a|+|b|\), points \((x,y)^\top \in \textbf{Z}^2\) on the supercover satisfy the double Diophantus inequality
for \(\textrm{gcd}(a,b)=1\) and \(\textrm{gcd}(\mu ,1)=1\).
Furthermore, we define the supercover of sample points.
Definition 8
For \(a,b,\mu \in \textbf{Z}\) and \(\omega =|a|+|b|\), points \((x,y)^\top \in \textbf{Z}^2\) on the \(\alpha \)-supercover satisfy the double inequality
for \(\textrm{gcd}(a,b)=1\) and \(\textrm{gcd}(\mu ,1)=1\).
The \(\alpha \)-pixels satisfy the following properties.
Property 1
For \(\alpha _1<\alpha _2\), the inclusive relation \(\textbf{p}^{\alpha _1}(\boldsymbol{x})\subset \textbf{p}^{\alpha _2}(\boldsymbol{x})\) is satisfied.
Property 2
For the four-connected point set \(\textbf{s}=\{\boldsymbol{x}_i\}_{i=1}^n\), the collection of \(\alpha \)-pixels \(\textbf{S}^\alpha =\{p_\alpha (\boldsymbol{x}_i)\}_{i=1}^n\) satisfies the inclusive relation \(\textbf{S}^{\alpha _1}\subset \textbf{S}^{\alpha _2}\) if \(1\le \alpha _1<\alpha _2\).
For \(\alpha =1\), the supercover of line \(ax+b+\mu =0\) is the four connected pixel string \(\textbf{P}_{(a,b,\mu )}\). The line \(ax+b+\mu =0\) crosses with all elements of the string \(\textbf{P}_{(a,b,\mu )}\). Figure 1(a) shows the configuration pixels in the supercover of a line. In Fig. 1(b) and 1(c), dark squares are \(\alpha \)-pixels for \(\alpha =2\) and \(\alpha =3/4\), respectively. Furthermore, in Fig. 1(b) and 1(c), light gray squares are \(\alpha \)-supercovers for \(\alpha =2\) and \(\alpha =3/4\), respectively. Figures 1(b) and 1(c) the local structures of 2-supercove and 3/4-supercover for a line, respectively.
If \(\textbf{S}\) is a string of four-connected pixels, Property 2 implies the inclusive relations of regions in which Euclidean reconstructions exist. Figure 2 shows the geometrical expressions of this inclusive relation for digital circles \(\textbf{C}^{\alpha }\) for \(\alpha =1,2^2,2^3, \, \, \textrm{and}, \, \, 2^4\) in (a), (b), (c) and (d), respectively.
3 Reconstruction of Line
Definition 9
Recognition of the \(\alpha \)-supercover from sample pixels \(\{\boldsymbol{x}_i=(x_i,y_i)^\top \}_{i=1}^n\) is to find integers a, b and \(\mu \) which minimise
with the conditions
for \(\textrm{gcd}(a,b)=1\), \(\textrm{gcd}(\mu ,1)=1\) and \(\omega =|a|+|b|\).
It is possible to assume \(a\ge 0\) since the line \(ax+by+\mu =0\) can be transformed to \(-ax-by-\mu = 0\) if a is negative. Therefore, assuming \(b\ge 0\), Eq. (3) can be expressed as
Theorem 1
For these two cases, the vector forms of inequalities of Eqs. (7) and (8) for \(\boldsymbol{a}=(a,b)^\top \) are
and
where \( \boldsymbol{M}=\left( \begin{array}{cc} 1,&{}0\\ 0,&{}-1 \end{array}\right) . \)
(Proof) For case 1, using the system of inequalites
Eq. (6) implies the system of inequalities
for \(i\ne j\), \(i,j=1,2,\cdots ,n\), where \(X_{ij}=x_{i}-x_{j}+\alpha \) and \(Y_{ij}=y_{i}-y_{j}+\alpha \). Therefore, \(\boldsymbol{x}_{ij}=(X_{ij},Y_{ij})^\top =\boldsymbol{x}_i-\boldsymbol{x}_j+\alpha \boldsymbol{e}\) for \(\boldsymbol{e}=(1,1)^\top \).
For case 2, since
we have the relations
and
(Q.E.D)
For case 1, setting \( \boldsymbol{a}^*=(a^*,b^*)^\top = \arg \min _{k} (|\boldsymbol{a}|_1=k, \, \, \boldsymbol{x}_{ij}^\top \boldsymbol{a}\ge 0), \) where \(|\boldsymbol{a}|_1=a+b=\boldsymbol{e}^\top \boldsymbol{a}\), \(\mu ^*\in \textbf{Z}\) is computed from the system of inequalies
for \(i\ne j\), \(i=1,2,\cdots ,n\). These relations imply that the computation of a positive integer pair \((a,b)^\top \) and an integer \(\mu \) is decomposed into two steps. Furthermore, this decomposition strategy leads to the following lemma.
Lemma 1
There is no solution for \((a,b)^\top \), if \(\textbf{A}_2=\{\boldsymbol{a}=(a,b)^\top | a>0, b>0, a,b\in \textbf{Z} \}\) is empty.
Definition 10
We call the region defined by \(\boldsymbol{x}_{ij}^\top \boldsymbol{a}\ge 0\) the feasible region.
For \(\alpha \)-supercover recognition, we analyse the relation between the geometrical configuration of sample points \(\boldsymbol{x}_i=(x_i,y_i)^\top \) for \(i=1,2,\cdots n\) and the feasible region defined by the sample points. From the geometric configurations of regions
and the regions defined by Eq. (6), Eq. (6) has no solution if all the following conditions
-
1.
\(Q_{--}\ne \emptyset ,\)
-
2.
\(\forall \boldsymbol{x}_{ij}\in Q_{0X}, Y_{ij}\le 0\),
-
3.
\(\forall \boldsymbol{x}_{ij}\in Q_{0Y}, X_{ij}\le 0\),
-
4.
\(Q_{+-}\ne \emptyset \), \(Q_{-+}\ne \emptyset \) and
$$ \min \left( -X_{ij}/Y_{ij}\right) _{|\boldsymbol{x}_{ij}\in Q_{+-}}< \max \left( -X_{nm}/Y_{nm}\right) _{|\boldsymbol{x}_{nm}\in Q_{-+}} $$
are satisfied. Therefore, we have the following theorem for recognition of the supercover from sample points in \(\textbf{Z}^2\).
Theorem 2
If all relations
are satisfied, the corresponding pixels \(\{\textbf{p}(\boldsymbol{x}_i)\}_{i=1}^n\) of sample points \(\{\boldsymbol{x}_i\}_{i=1}^n\) on \(\textbf{Z}^2\) define a supercover of the line \(ax+by+\mu =0\) for \(a>0\), \(b>0\) and \(\textrm{gcd}(a,b)=1\).
For the computation of a Euclidean line from sample points \(\{\boldsymbol{x}_i\}_{i=1}^n\), we define
Then, Eq. (17) implies the following theorem.
Theorem 3
There exists a line if the region defined by the system of inequalities
is not empty.
Assuming the feasible region is the positive cone in (a, b)-space defined by the system of inequalities
the solutions of the system of linear equations
are
These solutions are points on the boundary of the positive cone. By incrementing k until both \(a_{1}\) and \(b_{2}\) are integers, we compute the minimiser of \(a+b\). Once \(a>0\) and \(b>0\) are computed from Eq. (20), Eq. (12) implies
Therefore,
-
If \(\max \left\{ -(x_{i}+\frac{1}{2})a-(y_{i}+\frac{1}{2})b \right\} \ge 0\), then \( \mu =\max \left\{ -(x_{i}+\frac{1}{2})a-(y_{i}\right. \) \(\left. +\frac{1}{2})b \right\} . \)
-
If \(\min \left\{ (\frac{1}{2}-x_{i})a+(\frac{1}{2}-y_{i})b \right\} \le 0\), then \( \mu = \min \left\{ (\frac{1}{2}-x_{i})a+(\frac{1}{2}-y_{i})b \right\} . \)
-
If \(\max \left\{ -(x_{i}+\frac{1}{2})a-(y_{i}+\frac{1}{2})b \right\} < 0\) and \(\min \left\{ (\frac{1}{2}-x_{i})a+(\frac{1}{2}-y_{i})b \right\} > 0\), then \( \mu = 0. \)
4 Polygonalisation of \(\alpha \)-String
For the computation of a Euclidean polyline from the 1-string, at least three connected sample points are requested. Even if there is no solution for four-connected sample points \(\{\boldsymbol{x}_i=(x_i,y_i)^\top \}_{i=1}^n\), there might be two supercovers for each connected \(\{\boldsymbol{x}_i=(x_i,y_i)^\top \}_{i=1}^m\) and \(\{\boldsymbol{x}_i=(x_i,y_i)^\top \}_{m+1}^n\) for \(3\le m\le n-3\). This geometrical property of connected sample points implies the computation of open and closed polygonal curves from connected-sample points. This problem automatically requests the computation of the partition of connected sample points and the supercover to each partition of sample points.
We assume that strings of pixels \(\textbf{S}\) form the four-connected digital boundary of segment \(\textbf{S}\) on \(\textbf{Z}^2\). This boundary curve is extracted using appropriate morphological operations [14]. For the sample points \(\{\boldsymbol{x}_i\}_{i=1}^n\), \(\boldsymbol{x}_{i}\ne \boldsymbol{x}_j\) if \(i\ne j\). Furthermore, we can set \(\boldsymbol{x}_{i+m}=\boldsymbol{x}_i\). Then, the polygonalisation of \(\textbf{S}\) is described bellow.
Problem 1
Let \(\textbf{S}^\alpha \) be the digital boundary curve of an object on the square grid system. Compute a partition of \(\textbf{S}^\alpha \) such that \(\textbf{S}^\alpha =\cup _{i=1}^n\textbf{S}^{\alpha }_{i}\), \(\textbf{S}^{\alpha }_{i}=\{\textbf{p}^{\alpha }_{ij} \}_{j=1}^{n(i)}\) \(|\textbf{S}^{\alpha }_{i}\cap \textbf{S}^{\alpha }_{i+1}|=\varepsilon \) for an appropriate small integer \(\varepsilon \).
The polygonalisation of \(\textbf{S}^\alpha \) is described as following.
Problem 2
Compute the number of polygonal edges n and triplets of parameters \(\{(a_i,b_i,\mu _i)\}_{i=1}^n\) for edges that minimise the criterion
with respect to the system of inequalities
for \(i=1,2,\cdots n\) and \(j=1,2,\cdots ,n(i)\), where \(\omega _i=|a_i|+|b_i|\), \(\textrm{gcd}(a_i,b_i)=1\) and \(\textrm{gcd}(\mu _i,1)=1\).
The solution of Problem 2 yields a collection of curves
\(i=1,2,\cdots , n\) for an appropriate integer n.
Since we reconstruct polygonal edges from the \(\alpha \)-string generated from four-connected pixels, the minimum number of connected pixels for the initialisation of the algorithm is three. Then, incrementing four connected pixels on the string, the algorithm computes feasible regions from a series of the local string of \(\alpha \)-pixels whose centre points are four-connected. If no feasible region exists upon incrementing the \(\alpha \)-pixel, the algorithm fixes the parameters \((a_i,b_i)\) and \(\mu _i\) from a partial string one step before using the algorithm for supercover recognition. The algorithm restarts the parameter computation pixel by pixel. Finally, if all \(\alpha \)-pixels in the string are used for parameter computation, the algorithm stops and outputs polygonal edges.
5 Numerical Examples
Figure 3 shows the hierarchical expression of contour curves. Figures 3 (a), (b), (c), (d), (e) and (f) show the four-connected pixel contour, the Euclidean contour reconstructed 2-pixels, the Euclidean contour reconstructed 4-pixels, the Euclidean contour reconstructed 1/60-pixels, the Euclidean contour reconstructed 1-pixels and the Euclidean contour reconstructed 10-pixels, respectively. These examples show that if \(\alpha <0\), the Euclidean reconstructed curve is similar to the polyline fitting to sample points. For \(\alpha >0\), the Euclidean curves reconstructed form \(\alpha \)-pixel strings extracts absolute shapes if \(\alpha \) increases.
For the analysis of the reconstructed curves, the Euclidean reconstruction curves are computed for various \(\alpha \) values for the Koch curve in Fig. 4(a). Figures 4(b) and (c) show the Euclidean reconstruction from digital contour curves of \(\alpha =1\) and \(\alpha =10\), respectively.
Figure 5 shows evaluations of the numbers of edges, the lengths of contour curves and the areas encircled by reconstructed curves, respectively. These results show that for \(\alpha <1/2\) the numbers of edges, the lengths of contour curves and the areas encircled by reconstructed curves are almost stational. On the other hand, for \(\alpha >1\), \(\alpha \) acts as a scale for the hierarchical expression of shapes.
6 Conclusions
The Euclidean reconstruction problem of a line from samples \(\{\boldsymbol{x}_i=(x_i,y_i)^\top \}_{i=1}^n\) for \(\alpha \rightarrow 0\) implies the minimisation criterion
Equation (28) is the minimiser for the \(\ell _1\) line fitting [15, 16]. Setting
the \(\ell _1\) line fitting is established by minimising \(z=\boldsymbol{e}^\top \boldsymbol{s}\) subject to
where \(\boldsymbol{a}=(a,b)^\top \) [16, 17], using linear programming [17].
Therefore, our methods for Euclidean line reconstruction and polyline reconstruction from a collection of \(\alpha \)-pixels, respectively, are modifications of \(\ell _1\) line fitting [16] and \(\ell _1\)-polyline estimation [18, 19] optimisation to interval analysis [6,7,8].
References
Rosenfeld, A., Klette, R.: Digital Geometry: Geometric Methods for Digital Image Analysis (The Morgan Kaufmann Series in Computer Graphics). Morgan Kaufmann, San Diego (2004)
Bruckstein, A.M.: Digital geometry in image-based metrology. In: Brimkov, V., Barneva, R. (eds.) Digital Geometry Algorithms. Lecture Notes in Computational Vision and Biomechanics, vol. 2. Springer, Cham (2012). https://doi.org/10.1007/978-94-007-4174-4_1
Imiya, A., Sato, K.: Shape from silhouettes in discrete space. In: Brimkov, V., Barneva, R. (eds.) Digital Geometry Algorithms. Lecture Notes in Computational Vision and Biomechanics, vol. 2. Springer, Dordrecht (2012). https://doi.org/10.1007/978-94-007-4174-4_11
Coeurjolly, D., Zerarga, L.: Supercover model, digital straight line recognition and curve reconstruction on the irregular isothetic grids. Comput. Graph. 30, 46–53 (2006). https://doi.org/10.1016/j.cag.2005.10.009
Amenta, N., Choi, S., Dey, T.K., Leekha, N.: A simple algorithm for homeomorphic surface reconstruction. In: SCG 2000: Proceedings of the Sixteenth Annual Symposium on Computational Geometry, pp. 213–222 (2000). https://doi.org/10.1145/336154.336207
Karasick, M., Lieber, D., Nackman, L.: Efficient Delaunay triangulation using rational arithmetic. ACM Trans. Graph. 10, 71–91 (1991)
Alefeld, G., Mayer, G.: Interval analysis: theory and applications. J. Comput. Appl. Math. 121, 421–464 (2000). https://doi.org/10.1016/S0377-0427(00)00342-3
Ratschek, H.J., Rokne, J.: Geometric Computations with Interval and New Robust Methods Applications in Computer Graphics, GIS and Computational Geometry. Woodhead Publishing Limited (2003)
Vacavant, A., Roussillon, T., Kerautret, B., Lachaud, J.-O.: A combined multi-scale/irregular algorithm for the vectorization of noisy digital contours. CVIU 117, 438–450 (2013). https://doi.org/10.1016/j.cviu.2012.07.006
Vacavant, A.: Fast distance transformation on two-dimensional irregular grids. Pattern Recogn. 43, 3348–3358 (2010). https://doi.org/10.1016/j.patcog.2010.04.018
Gage, M., Hamilton, R.S.: The heat equation shrinking convex plane curves. J. Differ. Geom. 23, 69–96 (1986). https://doi.org/10.4310/jdg/1214439902
Grayson, M.A.: The heat equation shrinks embedded plane curves to round points. J. Differ. Geom. 26, 285–314 (1987). https://doi.org/10.4310/jdg/1214441371
Bruckstein, A.M., Sapiro, G., Shaked, D.: Evolutions of planar polygons. IJPRAI 9, 991–1014 (1995). https://doi.org/10.1142/S0218001495000407
Serra, J.: Image Analysis and Mathematical Morphology. Academic Press (1983)
Barrodale, I., Roberts, F.D.K.: An improved algorithm for discrete \(l_1\) linear approximation. SIAM J. Numer. Anal. 10, 839–848 (1973). https://www.jstor.org/stable/2156318
Wstson, G.A.: Approximation in normed linear spaces. J. Comput. Appl. Math. 121, 1–36 (2000). https://doi.org/10.1016/S0377-0427(00)00333-2
Matouǎek, J., Gärtner, B.: Understanding and using linear programming. Springer (2007). https://doi.org/10.1007/978-3-540-30717-4
Imai, H., Kato, K., Yamamoto, P.: A linear-time algorithm for linear \(L_1\) approximation of points. Algorithmica 4, 77–96 (1989). https://doi.org/10.1007/BF01553880
Aronov, B., Asano, T., Katoh, N., Mehlhorn, K., Tokuyama, T.: Polyline fitting of planar points under min-sum criteria. In: Fleischer, R., Trippen, G. (eds.) ISAAC 2004. LNCS, vol. 3341, pp. 77–88. Springer, Heidelberg (2004). https://doi.org/10.1007/978-3-540-30551-4_9
Acknowledgement
This research was supported by the Grants-in-Aid for Scientific Research funded by the Japan Society for the Promotion of Science, under 20K11881.
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2023 The Author(s), under exclusive license to Springer Nature Switzerland AG
About this paper
Cite this paper
Tosaka, K., Imiya, A. (2023). \(\alpha \)-Pixels for Hierarchical Analysis of Digital Objects. In: Calatroni, L., Donatelli, M., Morigi, S., Prato, M., Santacesaria, M. (eds) Scale Space and Variational Methods in Computer Vision. SSVM 2023. Lecture Notes in Computer Science, vol 14009. Springer, Cham. https://doi.org/10.1007/978-3-031-31975-4_51
Download citation
DOI: https://doi.org/10.1007/978-3-031-31975-4_51
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-031-31974-7
Online ISBN: 978-3-031-31975-4
eBook Packages: Computer ScienceComputer Science (R0)