Skip to main content
Log in

Topological Properties of the First Non-Local Digitally Well-Composed Interpolation on n-D Cubical Grids

  • Published:
Journal of Mathematical Imaging and Vision Aims and scope Submit manuscript

Abstract

In discrete topology, we like digitally well-composed (shortly DWC) interpolations because they remove pinches in cubical images. Usual well-composed interpolations are local and sometimes self-dual (they treat in a same way dark and bright components in the image). In our case, we are particularly interested in n-D self-dual DWC interpolations to obtain a purely self-dual tree of shapes. However, it has been proved that we cannot have an n-D interpolation which is at the same time local, self-dual and well-composed. By removing the locality constraint, we have obtained an n-D interpolation with many properties in practice: it is self-dual, DWC, and in-between (this last property means that it preserves the contours). Since we did not publish the proofs of these results before, we propose to provide in a first time the proofs of the two last properties here (DWCness and in-betweeness) and a sketch of the proof of self-duality (the complete proof of self-duality requires more material and will come later). Some theoretical and practical results are given.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8
Fig. 9
Fig. 10
Fig. 11
Fig. 12
Fig. 13
Fig. 14
Fig. 15
Fig. 16
Fig. 17
Fig. 18
Fig. 19
Fig. 20
Fig. 21
Fig. 22
Fig. 23
Fig. 24
Fig. 25
Fig. 26
Fig. 27
Fig. 28

Similar content being viewed by others

Notes

  1. The \(\infty \) subscript in \(\ell _\infty \) comes from the fact that it is related to the point \(p_\infty \) which represents the initial position of the algorithm, itself corresponding to the outer border of the domain of the image.

References

  1. Aubin, J.-P., Frankowska, H.: Set-Valued Analysis. Springer Science & Business Media (2009)

  2. Bertrand, G., Everat, J.-C., Couprie, M.: Topological approach to image segmentation. In: SPIE’s 1996 International Symposium on Optical Science, Engineering, and Instrumentation, vol. 2826, pp. 65–76. International Society for Optics and Photonics (1996)

  3. Bertrand, G., Everat, J.-C., Couprie, M.: Image segmentation through operators based on topology. J. Electron. Imaging 6(4), 395–405 (1997)

    Article  Google Scholar 

  4. Beucher, S., Meyer, F.: The morphological approach to segmentation: the watershed transformation. Math. Morphol. Image Process. 34, 433–481 (1993)

    Google Scholar 

  5. Boutry, N.: A study of well-composedness in \(n\)-D. Ph.D. Thesis, Université Paris-Est, France (2016)

  6. Boutry, N., Géraud, T., Najman, L.: On making \(n\)-D images well-composed by a self-dual local interpolation. In: Barcucci, E., Frosini, A., Rinaldi, S. (eds.) International Conference on Discrete Geometry for Computer Imagery (DGCI), Volume 8668 of Lecture Notes in Computer Science Series (LNCS), Siena, Italy, pp. 320–331. Springer (2014)

  7. Boutry, N., Géraud, T., Najman, L.: How to make images well-composed in \(n\)-D without interpolation. In: Proceedings of the IEEE International Conference on Image Processing (ICIP), Québec City, Canada, pp. 2149–2153 (2015)

  8. Boutry, N., Géraud, T., Najman, L.: How to make \(n\)-D functions digitally well-composed in a self-dual way. In: Benediktsson, J., Chanussot, J., Najman, L., Talbot, H. (eds.), Proceedings of the International Symposium on Mathematical Morphology (ISMM), Volume 9082 of Lecture Notes in Computer Science Series (LNCS), Reykjavik, Iceland, pp. 561–572. Springer (2015)

  9. Boutry, N., Géraud, T., Najman, L.: A tutorial on well-composedness. J. Math. Imaging Vis. 60, 443–478 (2017)

    Article  MathSciNet  Google Scholar 

  10. Boutry, N., Gonzalez-Diaz, R., Jimenez, M.-J.: Weakly well-composed cell complexes over \(n\)-D pictures. Inf. Sci. 499, 62–83 (2019)

    Article  MathSciNet  Google Scholar 

  11. Caselles, V., Monasse, P.: Geometric description of images as topographic maps. In: Lecture Notes in Computer Science Series (LNCS), 1984 (2009)

  12. Crozet, S. Géraud, T.: A first parallel algorithm to compute the morphological tree of shapes of \(n\)-D images. In: Proceedings of the IEEE International Conference on Image Processing (ICIP), pp. 2933–2937. IEEE (2014)

  13. Géraud, T., Carlinet, E., Crozet, S.: Self-duality and digital topology: links between the morphological tree of shapes and well-composed gray-level images. In: Proceedings of the International Symposium on Mathematical Morphology (ISMM), Volume 9082 of Lecture Notes in Computer Science Series (LNCS), pp. 573–584. Springer (2015)

  14. Géraud, T., Carlinet, E., Crozet, S., Najman, L.: A quasi-linear algorithm to compute the tree of shapes of \(n\)-D images. In: Proceedings of the International Symposium on Mathematical Morphology (ISMM), Volume 7883 of Lecture Notes in Computer Science Series (LNCS), pp. 98–110. Springer (2013)

  15. Géraud, T., Xu, Y., Carlinet, E., Boutry, N.: Introducing the Dahu pseudo-distance. In: Angulo, J., Velasco-Forero, S., Meyer, F. (eds.), Proceedings of the International Symposium on Mathematical Morphology (ISMM), Volume 10225 of Lecture Notes in Computer Science Series (LNCS), Fontainebleau, France, pp. 55–67. Springer (2017)

  16. González-Díaz, R., Jiménez, M.-J., Medrano, B.: Cohomology ring of 3D cubical complexes. In: International Workshop on Combinatorial Image Analysis (IWCIA), pp. 139–150 (2009)

  17. González-Díaz, R., Jiménez, M.J., Medrano, B.: Cubical cohomology ring of 3D photographs. Int. J. Imaging Syst. Technol. 21(1), 76–85 (2011)

    Article  Google Scholar 

  18. González-Díaz, R., Jiménez, M.-J., Medrano, B.: Well-composed cell complexes. In: International Conference on Discrete Geometry for Computer Imagery (DGCI), Volume 6607 of Lecture Notes in Computer Science Series (LNCS), pp. 153–162. Springer (2011)

  19. González-Díaz, R., Lamar, J., Umble, R.: Cup products on polyhedral approximations of 3D digital images. In: International Workshop on Combinatorial Image Analysis (IWCIA), Volume 6636 of Lecture Notes in Computer Science Series (LNCS), pp. 107–119. Springer (2011)

  20. González-Díaz, R., Real, P.: Towards digital cohomology. In: International Conference on Discrete Geometry for Computer Imagery (DGCI), Volume 2886 of Lecture Notes in Computer Science Series (LNCS), pp. 92–101. Springer (2003)

  21. González-Díaz, R., Real, P.: On the cohomology of 3D digital images. Discret. Appl. Math. 147(2), 245–263 (2005)

    Article  MathSciNet  Google Scholar 

  22. Huynh, L.D., Xu, Y., Géraud, T.: Morphology-based hierarchical representation with application to text segmentation in natural images. In: Proceedings of the International Conference on Pattern Recognition (ICPR), pp. 4029–4034. IEEE (2016)

  23. Kong, T.Y., Rosenfeld, A.: Digital topology: introduction and survey. Comput. Vis., Graph., Image Process. 48(3), 357–393 (1989)

  24. Köthe, U.: Generische Programmierung für Die Bildverarbeitung. BoD–Books on Demand (2000)

  25. Latecki, L.J.: Well-composed sets. Adv. Imaging Electron Phys. 112, 95–163 (2000)

    Article  Google Scholar 

  26. Latecki, L.J., Eckhardt, U., Rosenfeld, A.: Well-composed sets. Comput. Vis. Image Underst. 61(1), 70–83 (1995)

    Article  Google Scholar 

  27. Levillain, R., Géraud, T., Najman, L.: Writing reusable digital topology algorithms in a generic image processing framework. In: Applications of Discrete Geometry and Mathematical Morphology, Volume 7346 of Lecture Notes in Computer Science Series (LNCS), pp. 140–153. Springer (2012)

  28. Lorensen, W.E., Cline, H.E.: Marching cubes: a high resolution 3D surface construction algorithm. In: ACM SIGGRAPH Computer Graphics, vol. 21, pp. 163–169. ACM (1987)

  29. Marchadier, J., Arquès, D., Michelin, S.: Thinning grayscale well-composed images. Pattern Recogn. Lett. 25(5), 581–590 (2004)

    Article  Google Scholar 

  30. Mazo, L., Passat, N., Couprie, M., Ronse, C.: Digital imaging: a unified topological framework. J. Math. Imaging Vis. 44(1), 19–37 (2012)

    Article  MathSciNet  Google Scholar 

  31. Meyer, F.: Skeletons and perceptual graphs. Signal Process. 16(4), 335–363 (1989)

    Article  MathSciNet  Google Scholar 

  32. Najman, L., Géraud, T.: Discrete set-valued continuity and interpolation. In: Proceedings of the International Symposium on Mathematical Morphology (ISMM), Volume 7883 of Lecture Notes in Computer Science Series (LNCS), pp. 37–48. Springer (2013)

  33. Rosenfeld, A.: Digital topology. Am. Math. Mon. 86(8), 621–630 (1979)

    Article  MathSciNet  Google Scholar 

  34. Rosenfeld, A., Kong, T.Y., Nakamura, A.: Topology-preserving deformations of two-valued digital pictures. Graph. Models Image Process. 60(1), 24–34 (1998)

    Article  Google Scholar 

  35. Siqueira, M., Latecki, L.J., Gallier, J.: Making 3D binary digital images well-composed. In: Electronic Imaging, vol. 5675, pp. 150–163. International Society for Optics and Photonics. Electronic Imaging 2005, San Jose, CA (2005)

  36. Siqueira, M., Latecki, L.J., Tustison, N., Gallier, J., Gee, J.: Topological repairing of 3D digital images. J. Math. Imaging Vis. 30(3), 249–274 (2008)

    Article  MathSciNet  Google Scholar 

  37. Stelldinger, P., Latecki, L.J.: 3D object digitization: majority interpolation and marching cubes. In: Proceedings of the International Conference on Pattern Recognition (ICPR), vol. 2, pp. 1173–1176. IEEE (2006)

  38. Zhang, J., Sclaroff, S., Lin, Z., Shen, X., Price, B., Mech, R.: Minimum barrier salient object detection at 80 FPS. In: Proceedings of the IEEE International Conference on Computer Vision (ICCV), pp. 1404–1412 (2015)

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Nicolas Boutry.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Appendix

Appendix

1.1 Proof of the First Intrinsic Property of the FPA

Lemma 4

Let \(U : {\mathcal {D}}' \subseteq ({\mathbb {Z}}/2)^n\leadsto {\mathbb {R}}\) be an n-D interval-valued map, and let \(u^{\flat }= {{\mathfrak {F}}}{{\mathfrak {P}}}(U) : {\mathcal {D}}' \rightarrow {\mathbb {R}}\) be the function resulting from the front propagation algorithm applied on U. Now, let \(a,m \in {\mathcal {D}}'\) be 2n-neighbors in \(({\mathbb {Z}}/2)^n\) such that \(U(a) \subseteq U(m)\). Then \(u^{\flat }(m) < u^{\flat }(a)\) implies that \(u^{\flat }(a) = \lfloor U \rfloor (a)\) and \(u^{\flat }(m) > u^{\flat }(a)\) implies that \(u^{\flat }(a) = \lceil U \rceil (a)\).

Proof

Let us begin with the case \(t(a) < t(m)\), that is, a has been enqueued before m. Three cases are possible.

The first subcase corresponds to \(\ell (a) > \lceil U \rceil (a)\). Then \(u^{\flat }(a) = \lceil U \rceil (a)\), \(Q[u^{\flat }(a)] \supseteq \{a\}\) at \(t = t(a)\), and the current level \(\ell \) remains greater than or equal to \(u^{\flat }(a)\) until a has been processed, because no jump of non-empty queue level is allowed. Since m is enqueued after a (by hypothesis) and at the latest during the processing of a (because a and m are 2n-neighbors), \(\ell (m) \ge u^{\flat }(a)\). Since \(\lceil U \rceil (m) \ge \lceil U \rceil (a) \ge u^{\flat }(a)\), we obtain finally the relation \(u^{\flat }(m) \ge u^{\flat }(a)\) (Case 1.1).

The second subcase corresponds to \(\ell (a) \in U(a)\). In this subcase, \(u^{\flat }(a) = \ell (a)\), \(Q[u^{\flat }(a)] \supseteq \{a\}\) at time \(t = t(a)\), and the current level \(\ell \) stays at the value \(u^{\flat }(a)\) until a is processed (at least). Since a and m are 2n-neighbors, and since m is enqueued after a, m is enqueued after t(a) and at the latest while a is processed. This way, \(\ell (m) = u^{\flat }(a)\) and then \(u^{\flat }(m) = u^{\flat }(a)\) since \(U(a) \subseteq U(m)\) (Case 1.2).

The third subcase corresponds to \(\ell (a) < \lfloor U \rfloor (a)\). We reason by symmetry and we obtain that \(u^{\flat }(a) = \lfloor U \rfloor (a)\) and \(u^{\flat }(m) \le u^{\flat }(a)\) (Case 1.3).

Let us follow with the case \(t(a) > t(m)\). Then five subcases are possible.

If \(\ell (m) > \lceil U \rceil (m)\), then \(u^{\flat }(m) = \lceil U \rceil (m)\), \(Q[u^{\flat }(m)] \supseteq \{m\}\) at \(t = t(m)\), and the current level \(\ell \) remains greater than or equal to \(u^{\flat }(m)\) until m has been processed, because no jump of non-empty queue level is allowed. Since a is enqueued after m (by hypothesis) and at the latest during the processing of m (because a and m are 2n-neighbors), \(\ell (a) \ge u^{\flat }(m)\). Then two subcases are possible:

  • either \(\lceil U \rceil (m) >\lceil U \rceil (a)\) and then:

    $$\begin{aligned} u^{\flat }(a) = \lceil U \rceil (a) < u^{\flat }(m), \ \ \text {(Case 2.1.a)} \end{aligned}$$
  • or \(\lceil U \rceil (m) = \lceil U \rceil (a)\) and then:

    $$\begin{aligned} u^{\flat }(a) = \lceil U \rceil (a) = u^{\flat }(m). \ \ \text {(Case 2.1.b)} \end{aligned}$$

If \(\ell (m) \in ]\lceil U \rceil (a), \lceil U \rceil (m)]\), assuming that \(\lceil U \rceil (a) < \lceil U \rceil (m)\), \(u^{\flat }(m) = \ell (m)\), \(Q[u^{\flat }(m)] \supseteq \{m\}\) at \(t = t(m)\), and the current level \(\ell \) stays at the value \(u^{\flat }(m)\) until m is processed (at least). Since a and m are 2n-neighbors, and since a is enqueued after m, a is enqueued after t(m) and at the latest while m is processed. This way, \(\ell (a) = u^{\flat }(m)\), and then \(u^{\flat }(a) = \lceil U \rceil (a) < u^{\flat }(m)\) (Case 2.2).

If \(\ell (m) \in U(a)\), \(u^{\flat }(m) = \ell (m)\) (since we have \(U(a) \subseteq U(m)\)) and \(Q[u^{\flat }(m)] \supseteq \{m\}\) at \(t = t(m)\). Then the current level \(\ell \) stays at the value \(u^{\flat }(m)\) until m is processed (at least). Since a and m are 2n-neighbors, and since a is enqueued after m, a is enqueued after t(m) and at the latest while m is processed. This way, \(\ell (a) = u^{\flat }(a)\) and then \(u^{\flat }(a) = u^{\flat }(m)\) (Case 2.3).

If \(\ell (m) \in [\lfloor U \rfloor (m), \lfloor U \rfloor (a)]\) (assuming that \(\lfloor U \rfloor (m) < \lfloor U \rfloor (a)\)), we reason by symmetry and we obtain that \(u^{\flat }(a) = \lfloor U \rfloor (a) > u^{\flat }(m)\) (Case 2.4).

If \(\ell (m) < \lfloor U \rfloor (m)\), we reason again by symmetry and we obtain that:

  • either \(\lfloor U \rfloor (m) < \lfloor U \rfloor (a)\) and:

    $$\begin{aligned} u^{\flat }(a) = \lfloor U \rfloor (a) > u^{\flat }(m), \ \ \text {(Case 2.5.a)} \end{aligned}$$
  • or \(\lfloor U \rfloor (m) = \lfloor U \rfloor (a)\) and:

    $$\begin{aligned} u^{\flat }(a) = \lfloor U \rfloor (a) = u^{\flat }(m).\ \ \text {(Case 2.5.b)} \end{aligned}$$

Let us summarize the different cases:

Case

Relation 1

Relation 2

Relation 3

(1.1)

\(t(a) < t(m)\)

\(u^{\flat }(a) = \lceil U \rceil (a)\)

\(u^{\flat }(m) \ge u^{\flat }(a)\)

(1.2)

\(t(a) < t(m)\)

\(u^{\flat }(a) \in U(a)\)

\(u^{\flat }(m) = u^{\flat }(a)\)

(1.3)

\(t(a) < t(m)\)

\(u^{\flat }(a) = \lfloor U \rfloor (a)\)

\(u^{\flat }(m) \le u^{\flat }(a)\)

(2.1.a)

\(t(m) < t(a)\)

\(u^{\flat }(a) = \lceil U \rceil (a)\)

\(u^{\flat }(m) > u^{\flat }(a)\)

(2.1.b)

\(t(m) < t(a)\)

\(u^{\flat }(a) = \lceil U \rceil (a)\)

\(u^{\flat }(m) = u^{\flat }(a)\)

(2.2)

\(t(m) < t(a)\)

\(u^{\flat }(a) = \lceil U \rceil (a)\)

\(u^{\flat }(m) > u^{\flat }(a)\)

(2.3)

\(t(m) < t(a)\)

\(u^{\flat }(a) \in U(a)\)

\(u^{\flat }(m) = u^{\flat }(a)\)

(2.4)

\(t(m) < t(a)\)

\(u^{\flat }(a) = \lfloor U \rfloor (a)\)

\(u^{\flat }(m) < u^{\flat }(a)\)

(2.5.a)

\(t(m) < t(a)\)

\(u^{\flat }(a) = \lfloor U \rfloor (a)\)

\(u^{\flat }(m) < u^{\flat }(a)\)

(2.5.b)

\(t(m) < t(a)\)

\(u^{\flat }(a) = \lfloor U \rfloor (a)\)

\(u^{\flat }(m) = u^{\flat }(a)\)

We obtain finally that \(u^{\flat }(a) < u^{\flat }(m)\) implies that we are in Cases 1.1, 2.1.a, or 2.2 and then \(u^{\flat }(a) = \lceil U \rceil (a)\), and that \(u^{\flat }(a) > u^{\flat }(m)\) implies that we are in Cases 1.3, 2.4 or 2.5.a, and then \(u^{\flat }(a) = \lfloor U \rfloor (a)\). This concludes the proof. \(\square \)

1.2 Proof of the Secund Intrinsic Property of the FPA

Lemma 5

Let \(U : {\mathcal {D}}' \subseteq ({\mathbb {Z}}/2)^n\leadsto {\mathbb {R}}\) be an n-D interval-valued map, and let \(u^{\flat }= {{\mathfrak {F}}}{{\mathfrak {P}}}(U) : {\mathcal {D}}' \rightarrow {\mathbb {R}}\) be the function resulting from the front propagation algorithm applied on U. Now, let r be a point of \({\mathcal {D}}'\). We can observe the two following implications:

$$\begin{aligned} \left\{ \begin{array}{ll} u^{\flat }(r) < \lceil U \rceil (r) \Rightarrow \ell (r) \le u^{\flat }(r) &{} (1)\\ u^{\flat }(r) > \lfloor U \rfloor (r) \Rightarrow \ell (r) \ge u^{\flat }(r) &{} (2) \end{array}\right. \end{aligned}$$

Proof

By a case-by-case study, we can establish a correlation between \(\ell (r)\) and \(u^{\flat }(r)\) for any given point \(r \in {\mathcal {D}}'\). The possible cases are \(\ell (r) < \lfloor U \rfloor (r)\) (1), \(\ell (r) \in U(r)\) (2), and \(\ell (r) > \lceil U \rceil (r)\) (3):

  1. 1.

    we obtain that \(\ell (r) < u^{\flat }(r)\) because \(u^{\flat }(r) \in U(r)\), and at the same time, \(u^{\flat }(r)\) is equal to \(\lfloor U \rfloor (r)\) because it is the nearest value to \(\ell (r)\) in U(r);

  2. 2.

    we obtain that \(u^{\flat }(r) = \ell (r)\) because the nearest value to \(\ell (r)\) in U(r) is \(\ell (r)\) itself, and at the same time we obtain simply the initial property \(u^{\flat }(r) \in U(r)\) (no additional assumption is possible);

  3. 3.

    we obtain that \(\ell (r) > u^{\flat }(r)\) because \(u^{\flat }(r) \in U(r)\), and at the same time \(u^{\flat }(r) = \lceil U \rceil (r)\) because this is the nearest value to \(\ell (r)\) into U(r).

Finally, we obtain this table:

Case

Relation 1

Relation 2

(1) : \(\ell (r) < \lfloor U \rfloor (r)\)

\(\ell (r) < u^{\flat }(r)\)

\(u^{\flat }(r) = \lfloor U \rfloor (r)\)

(2) : \(\ell (r) \in U(r)\)

\(\ell (r) = u^{\flat }(r)\)

\(u^{\flat }(r) \in U(r)\)

(3) : \(\ell (r) > \lceil U \rceil (r)\)

\(\ell (r) > u^{\flat }(r)\)

\(u^{\flat }(r) = \lceil U \rceil (r)\)

Then we can observe that if \(u^{\flat }(r) < \lceil U \rceil (r)\), that is, if \(u^{\flat }(r) \ne \lceil U \rceil (r)\), we are then either in the case (1) or in the case (2) and then we obtain that \(\ell (r) \le u^{\flat }(r)\).

Conversely, if \(u^{\flat }(r) > \lfloor U \rfloor (r)\), that is, if \(u^{\flat }(r) \ne \lfloor U \rfloor (r)\), we are then either in the case (2) or in the case (3) and then we obtain that \(\ell (r) \ge u^{\flat }(r)\). \(\square \)

Lemma 6

Let \(U : {\mathcal {D}}' \subseteq ({\mathbb {Z}}/2)^n\leadsto {\mathbb {R}}\) be an n-D interval-valued map, and let \(u^{\flat }= {{\mathfrak {F}}}{{\mathfrak {P}}}(U) : {\mathcal {D}}' \rightarrow {\mathbb {R}}\) be the gray-level function resulting from the front propagation algorithm applied on U. Let \(p,q \in {\mathcal {D}}'\) be two 2n-neighbors in \(({\mathbb {Z}}/2)^n\) and \(\lambda \in {\mathbb {R}}\). Then, it is impossible to get the following set of properties together:

$$\begin{aligned} \left\{ \begin{array}{llll} u^{\flat }(p) &{}\, \le &{} \, \lambda , &{}\,({\mathcal {H}}1) \\ \lceil U \rceil (p) &{}\,>&{} \, \lambda , &{}\,({\mathcal {H}}2) \\ u^{\flat }(q) &{}\, >&{} \, \lambda , &{}\,({\mathcal {H}}3) \\ \lfloor U \rfloor (q) &{}\, \le &{} \, \lambda . &{}\,({\mathcal {H}}4)\\ \end{array}\right. \end{aligned}$$
Fig. 29
figure 29

The 4 possible scenarios when only two 2n-neighbors p and q in \({\mathcal {D}}'\) are considered

Proof

Now, let pq be two 2n-neighbors in \({\mathcal {D}}'\) and let us assume that there exists a value \(\lambda \in {\mathbb {R}}\) verifying \(({\mathcal {H}}1)\), \(({\mathcal {H}}2)\), \(({\mathcal {H}}3)\) and \(({\mathcal {H}}4)\).

We can observe easily thanks to \(({\mathcal {H}}1)\) and \(({\mathcal {H}}2)\) that \(u^{\flat }(p) < \lceil U \rceil (p)\) and then using Lemma 5, we obtain:

$$\begin{aligned} \ell (p) \le u^{\flat }(p)\ \ \ ({\mathcal {H}}5). \end{aligned}$$

In addition, thanks to \(({\mathcal {H}}3)\) and \(({\mathcal {H}}4)\), we obtain \(u^{\flat }(q) > \lfloor U \rfloor (q)\) and using Lemma 5, this results in:

$$\begin{aligned} \ell (q) \ge u^{\flat }(q) \ \ \ ({\mathcal {H}}6). \end{aligned}$$

Taking into consideration the two 2n-neighbors p and q, we have 4 possible scenarios as depicted in Fig. 29:

  1. 1.

    either p is enqueued before q, then two subcases are possible:

    1. (a)

      either q is enqueued when p is the current position,

    2. (b)

      or q is enqueued before p is the current position.

  2. 2.

    either q is enqueued before p, then two subcases are possible:

    1. (a)

      either p is enqueued when q is the current position,

    2. (b)

      or p is enqueued before q is the current position.

Let us notice that since p and q are 2n-neighbors, q cannot be enqueued after p is the current position, and similarly p cannot been enqueued after q is the current position (all the 2n-neighbors of the current position will have been enqueued when it has been processed).

Now let us show that whatever the scenario we choose, we always obtain a contradiction.

(1.a): p is enqueued before q, and then q is enqueued when p is the current position. It means that \(\ell (q) = u^{\flat }(p)\). However, we have seen that \(u^{\flat }(p) \le \lambda \) by \(({\mathcal {H}}1)\), and that \(\ell (q) \ge u^{\flat }(q) > \lambda \) by \(({\mathcal {H}}6)\) and \(({\mathcal {H}}3)\). This leads to a contradiction.

(1.b): p is enqueued before q, and q is enqueued before the current position is set at p. This way, since the current level \(\ell \) at t(p) is equal to \(\ell (p) \le u^{\flat }(p)\), it is equal to \(\ell (q) \le u^{\flat }(p)\) at t(q) (no jump of the non-empty queue level \(Q[u^{\flat }(p)]\) is allowed by the algorithm). This means by \(({\mathcal {H}}1)\) that \(\ell (q) \le \lambda \). However, by \(({\mathcal {H}}6)\) and \(({\mathcal {H}}3)\), \(\ell (q) > \lambda \). This leads to a contradiction.

(2.a) is the symmetrical case of (1.a) and (2.b) is the one of (1.b) and then they lead also to contradictions.

The conclusion is that whatever the scenario (and one of these scenarios happens during the computation of the interpolation), the combination of hypotheses \(({\mathcal {H}}1)\), \(({\mathcal {H}}2)\), \(({\mathcal {H}}3)\) and \(({\mathcal {H}}4)\) leads to a contradiction. These hypotheses are then incompatible. \(\square \)

1.3 The Proof that Adding a Constant Border Preserves DWCNess

Proposition 7

Let us denote by \(\delta \) the dilation operator and by \(\text {se}\) the structuring element defined such that

$$\begin{aligned} \text {se}:= \left\{ p \in \left( \frac{{\mathbb {Z}}}{2}\right) ^n\; ; \; ||p||_{\infty } \le 1/2\right\} . \end{aligned}$$

Let \(U_0 : {\mathcal {D}}\subset \left( \frac{{\mathbb {Z}}}{2}\right) ^n\leadsto {\mathbb {Z}}\) be a DWC interval-valued map defined on a bounded hyperrectangle \({\mathcal {D}}\) in \(\left( \frac{{\mathbb {Z}}}{2}\right) ^n\). Now, let \(U_1 : {\mathcal {D}}' \leadsto {\mathbb {Z}}\) be another interval-valued map defined on a bounded hyperrectangle \({\mathcal {D}}' = \delta ({\mathcal {D}}, \text {se})\), such that \(U_1|_{{\mathcal {D}}} = U_0\) and for any \(p \in {\mathcal {D}}' {\setminus } {\mathcal {D}}\), \(U'(p) = \{c\}\) (where c in a given constant in \({\mathbb {R}}\)). Then, \(U_1\) is a DWC interval-valued map.

Fig. 30
figure 30

Two possible configurations when dilating the domain \({\mathcal {D}}_{k-1}\) into \({\mathcal {D}}_k\) with our structuring elements

Proof

First let us introduce some notations. Let \((\text {se}^k)_{k \in \llbracket 1,2n \rrbracket }\) be a sequence of structuring elements defined s.t. \(\forall k \in \llbracket 1,2n \rrbracket \):

$$\begin{aligned} \text {se}^k = \left\{ \mathbf{0}, \frac{1}{2} \ (-1)^k \ e^{\lfloor \frac{(k+1)}{2}\rfloor }\right\} , \end{aligned}$$

and let \(({\mathcal {D}}_k)_{k \in \llbracket 0,2n \rrbracket }\) be a sequence of domains s.t. \({\mathcal {D}}_0 = {\mathcal {D}}\) and s.t., \(\forall k \in \llbracket 1,2n \rrbracket \):

$$\begin{aligned} {\mathcal {D}}_k = \delta ({\mathcal {D}}_{k-1},\text {se}^k). \end{aligned}$$

In this manner, \({\mathcal {D}}_{2n} = \delta ({\mathcal {D}},\text {se}) = {\mathcal {D}}'\).

We want to show that \(U_1\) is digitally well-composed on \({\mathcal {D}}'\), and for that we are going to show by an induction process that, \(\forall k \in \llbracket 0,2n \rrbracket \), \(U_1\big |_{{\mathcal {D}}_k}\) is digitally well-composed.

Initialization (\(k = 0\)): \(U_1\big |_{{\mathcal {D}}_0} = U_0\) which is DWC by hypothesis.

Heredity (\(k \in \llbracket 1,2n \rrbracket \)): assuming that the image \(U_1\big |_{{\mathcal {D}}_{k-1}}\) is DWC, let us show that \(U_1\big |_{{\mathcal {D}}_k}\) is DWC too. Two cases are then possible.

  • either k is odd, then \(\text {se}^k = \{\mathbf{0}, - \ \frac{1}{2} \ e^{\frac{k+1}{2}}\}\), and then we obtain the configuration depicted in Fig. 30 (Case 1),

  • or k is even, then \(\text {se}^k = \{\mathbf{0}, \frac{1}{2} \ e^{\frac{k}{2}}\}\), and then we obtain the configuration depicted in Fig. 30 (Case 2).

Let us now denote \(\varDelta {\mathcal {D}}\) the set equal to \({\mathcal {D}}_k {\setminus } {\mathcal {D}}_{k-1}\). Let us remark that this set is also an hyperrectangle. In addition, let us denote by \(u^+_k\), \(u^-_k\), \(u^+_{k-1}\) and \(u^-_{k-1}\) the images \(\lceil U_1 \rceil \big |_{{\mathcal {D}}_k}\), \(\lfloor U_1 \rfloor \big |_{{\mathcal {D}}_k}\), \(\lceil U_1 \rceil \big |_{{\mathcal {D}}_{k-1}}\), \(\lfloor U_1 \rfloor \big |_{{\mathcal {D}}_{k-1}}\), respectively. We can say that \(U_1\big |_{{\mathcal {D}}_k}\) is DWC iff \(\forall S \in {\mathcal {B}}({\mathcal {D}}_k,\left( \frac{{\mathbb {Z}}}{2}\right) ^n)\) s.t. \(\dim (S) \ge 2\), \(\forall p,p' \in S\) s.t. \(p' = \text {antag}_S(p)\), we have the following relations:

$$\begin{aligned} \left\{ \begin{array}{lll} &{}\text {intvl}(u^+_k(p),u^+_k(p')) \\ &{}\cap \ \text {Span}\{u^+_k(q) \; ; \; q \in S {\setminus } \{p,p'\}\} \ne \emptyset , &{} \hbox {(A)}\\ &{}\text {intvl}(u^-_k(p),u^-_k(p')) \\ &{}\cap \ \text {Span}\{u^-_k(q) \; ; \; q \in S {\setminus } \{p,p'\}\} \ne \emptyset . &{} \hbox {(B)}\\ \end{array}\right. \end{aligned}$$

So let S be such a block of \({\mathcal {D}}_k\) into \(\left( \frac{{\mathbb {Z}}}{2}\right) ^n\), and let \(p^{\min }\) and \(p^{\max }\) be two elements of S such that, for any \(i \in \llbracket 1,n \rrbracket \),

$$\begin{aligned} \left\{ \begin{array}{l} p^{\min }_i = \min \{p_i \; ; \; p \in S\},\\ p^{\max }_i = \max \{p_i \; ; \; p \in S\}.\\ \end{array}\right. \end{aligned}$$

In this manner, \(p^{\min }\) and \(p^{\max }\) are antagonists in S. Then, 4 cases are possible:

  1. 1.

    \(p^{\min }\) and \(p^{\max }\) belong to \({\mathcal {D}}_{k-1}\), then \(S \subseteq {\mathcal {D}}_{k-1}\), and in this way, \(\forall p \in S\), \(u^+_k(p) = u^+_{k-1}(p)\) and \(u^-_k(p) = u^-_{k-1}(p)\), which implies that the intersections in (A) and (B) are non-empty since \(u^+_{k-1}\) and \(u^-_{k-1}\) are DWC and \(\dim (S) \ge 2\),

  2. 2.

    or \(p^{\min }\) and \(p^{\max }\) belong to \(\varDelta {\mathcal {D}}\), then \(S \subseteq \varDelta {\mathcal {D}}\), and then \(\forall p \in S\), \(u^+_k(p) = u^-_{k}(p) = c\), which means that (A) and (B) are true since \(\dim (S) \ge 2\),

  3. 3.

    or \(p^{\min }\in {\mathcal {D}}_{k-1}\) and \(p^{\max }\in \varDelta {\mathcal {D}}\). Then we are in the second case in Fig. 30. In other words,

    $$\begin{aligned} \left\{ \begin{array}{l} S \cap {\mathcal {D}}_{k-1} = \{p \in S \; ; \; p_{k/2} = p^{\min }_{k/2}\},\\ S \cap \varDelta {\mathcal {D}}= \{p \in S \; ; \; p_{k/2} = p^{\max }_{k/2}\},\\ \end{array}\right. \end{aligned}$$

    which means that S can decomposed into two blocks of dimension \(\dim (S) - 1 \ge 1\), the first being \(S \cap {\mathcal {D}}_{k-1}\) and the second being \(S^* := S \cap \varDelta {\mathcal {D}}\). Since \(S^*\) verifies that \(\forall p \in S^*\), \(u^+_k(p) = u^-_k(p) = c\) and that \(\dim (S^*) \ge 1\), there exist two points \(p,q \in S^*\) which are not antagonists into S and such that \(u^+_k(p) = u^+_k(q)\) and \(u^-_k(p) = u^-_k(q)\), then (A) and (B) are both true,

  4. 4.

    or \(p^{\max }\in {\mathcal {D}}_{k-1}\) and \(p^{\min }\in \varDelta {\mathcal {D}}\). Then we are in the first case in Fig. 30. A dual reasoning leads to the fact that (A) and (B) are both true.

We can then conclude by induction that \(U_1\) is DWC. \(\square \)

1.4 Proof that digital well-composedness Implies Equivalent Connectivities

Let us recall the definition of well-composedness based on the equivalence of connectivities[8] (EWCness).

Definition 21

Let X be a digital set in \({\mathbb {Z}}^n \). X is said to be EWC or well-composed based on the equivalence of its connectivities if the two following conditions hold:

  • any of its 2n-components is also one of its \((3^n-1)\)-components and vice versa,

  • any 2n-component of \(X^c\) is also a \((3^n-1)\)-component of \(X^c\) and vice versa.

We can underline that this definition is clearly self-dual, and since the connectivity does not matter for this class of sets, we will sometimes say that their connectivities (and the ones of their complement in \({\mathbb {Z}}^n \)) are equivalent. In addition, this definition is the “natural” extension of the one of Latecki [26] for 2D sets.

Now that we have the definition of EWCness for sets, we can define EWCness for gray-level images.

Definition 22

A gray-level image \(u : {\mathcal {D}}\subseteq {\mathbb {Z}}^n \rightarrow {\mathbb {Z}}\) is said well-composed based on the equivalence of connectivities (EWC) if all its threshold sets are well-composed based on the equivalence of connectivities.

The definitions of EWCness for sets and images are extended naturally to \(({\mathbb {Z}}/2)^n\): a subset X of \(({\mathbb {Z}}/2)^n\) is said EWC if the connected components of X and of \(({\mathbb {Z}}/2)^n{\setminus } X\) do not depend on the chosen connectivity, and a gray-level image \(u : {\mathcal {D}}\subseteq ({\mathbb {Z}}/2)^n\rightarrow {\mathbb {Z}}\) is said EWC if all its threshold sets are EWC.

Let us recall that EWCness is a global property, since it is based on connected components, and that DWCness is based on local properties, that is, there is no critical configurations. That shows that the link between DWCness and EWCness is not so obvious. Before proving that DWCness implies EWCness in any (finite) dimension n, \(n \ge 2\), let us announce some lemmas.

Lemma 7

Let \(p,p' \in {\mathbb {Z}}^n \) be two points in a digitally well-composed set \(X \subset {\mathbb {Z}}^n \). If p and \(p'\) are \((3^n-1)\)-connected into X, they are also 2n-connected into X.

Proof

Let \(p,p'\) be two points in \(X \subset {\mathbb {Z}}^n \) which is digitally well-composed. Assuming that p and \(p'\) are \((3^n-1)\)-connected into X, there exists a \((3^n-1)\)-path

$$\begin{aligned} \pi = (q^0 = p, q^1, \dots ,q^{k-1},q^k = p') \end{aligned}$$

of length \(k \ge 0\) joining them into X. For any \(i \in \llbracket 0,k-1 \rrbracket \), \(q^i\) and \(q^{i+1}\) are \((3^n-1)\)-adjacent, and then antagonists in a block \(S(q^i,q^{i+1})\). Since X is digitally well-composed and \(q^i\) and \(q^{i+1}\) belong to X, by Theorem 1, there exists a 2n-path joining \(q^i\) and \(q^{i+1}\) into \(X \cap S(q^i,q^{i+1})\). Then, p and \(p'\) are 2n-connected into X. \(\square \)

Fig. 31
figure 31

DWCness implies EWCness

Theorem 5

Let \(X \subset {\mathbb {Z}}^n \) be a digitally well-composed set. Then, X is well-composed based on the equivalence of connectivities(EWC). In other words, we have:

$$\begin{aligned} {{\mathcal {C}}}{{\mathcal {C}}}_{2n}(X) = {{\mathcal {C}}}{{\mathcal {C}}}_{3^n-1}(X), \end{aligned}$$

and

$$\begin{aligned} {{\mathcal {C}}}{{\mathcal {C}}}_{2n}(X^c) = {{\mathcal {C}}}{{\mathcal {C}}}_{3^n-1}(X^c). \end{aligned}$$

Proof

Let assume that \(X \subset {\mathbb {Z}}^n \) is DWC. By Lemma 7, each 2n-component of X is also a \((3^n-1)\)-component of X (see details in Fig. 31a), and each \((3^n-1)\)-component of X is also a 2n-component of X (see details in Fig. 31b). \(\square \)

Fig. 32
figure 32

EWCness does not imply DWCness in n-D (\(n \ge 3\))

Recall that the converse of Theorem 5 is not true in 3D (see Fig. 32): a 3D subset of \({\mathbb {Z}}^n \) can be EWC without being DWC, since the \((3^n-1)\)-components and the 2n-components of this set are equal, but it contains a 2D critical configuration at the top and then is not DWC (the reasoning holds for any dimension \(n \ge 3\)).

Corollary 1

Let \(u : {\mathcal {D}}\rightarrow {\mathbb {Z}}\) be a gray-level image. Then, when u is DWC, u is EWC.

Proof

This follows directly from Theorem 5. \(\square \)

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Boutry, N., Najman, L. & Géraud, T. Topological Properties of the First Non-Local Digitally Well-Composed Interpolation on n-D Cubical Grids. J Math Imaging Vis 62, 1256–1284 (2020). https://doi.org/10.1007/s10851-020-00989-y

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s10851-020-00989-y

Keywords

Navigation