Next Article in Journal
Artificial Intelligence Applications in Public Health
Previous Article in Journal
An Analytical Prior Selection Procedure for Empirical Bayesian Analysis Using Resampling Techniques: A Simulation-Based Approach Using the Pancreatic Adenocarcinoma Data from the SEER Database
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Unbiased Finite Element Mesh Delaunay Constrained Triangulation Applied to 2D Images with High Morphological Complexity Using Mathematical Morphology Tools Part 1: Binary Images

1
Unité de Mécanique de Lille UML J. Boussinesq, Université de Lille, Villeneuve d’Ascq, 59000 Lille, France
2
CMAT—Centre des Matériaux, CNRS UMR 7633, Mines-Paris, PSL University, F-91003 Evry, France
*
Author to whom correspondence should be addressed.
Computation 2025, 13(2), 52; https://doi.org/10.3390/computation13020052
Submission received: 2 June 2024 / Revised: 8 August 2024 / Accepted: 5 September 2024 / Published: 13 February 2025

Abstract

:
We propose a method for establishing a Constrained Delaunay Triangulation CDT applied to 2D binary images of high morphological complexity. A prerequisite for CDT is the unbiased definition of the Planar Straight-Line Graph PSLG, which must respect the injective nature of Jordan’s Curve whatever the topology of the image objects. Mathematical morphology provides tools for extracting the image contour, on which points will be judiciously placed at particular points to construct the vector path of the PSLG. Finally, these tools will enable us to implement a judicious pointing process in the image to guarantee the relative equivalence of triangles. The deterministic and rigorous procedure detailed in this article will be generalized in a second article, Part 2, to the case of labeled images for which the definition of the PSLG is more complex to define, since the contour of objects in the image is defined by the set of contours of adjacent objects.

1. Introduction

Two-dimensional imaging is widely used for quantitative image analysis in virtually all fields of research, such as biology, materials science, or calligraphic analyses of texts, to name but a few. Segmentation is a prerequisite for all image analyses. If segmentation results in the division of two unique labels, the image is binary. By convention, the objects in an image all have one pixel, and the 0 value is assigned to the rest of the image. However, although the amount of data pixels is often small, it is often necessary to reduce the size of the data to suit the area of use. Constrained Delaunay triangulation (CDT) is an effective tool for associating a triangular structure with each object in an image. The condition is that the PSLG of the triangulation is faithful to the contour of the objects in the image.
Langer’s method [1], later adopted by Zao [2], involves adapting a coarse triangular grid to an image, which serves as the first mesh. This is refined by successive iterations until the image and mesh converge on an equilibrium structure. It then assigns a unique label value to each mesh element. It establishes a calculation code called the Oriented Finite Element (OFE). Although this technique takes grayscale images as input, this method is classified as a binary-image-meshing method. The algorithm uniquely allows only two groups of elements, the objects and the rest of the image.
Other methods include Marching Techniques. These techniques are very popular, especially in 3D, where the Marching Cube technique [3] is at the heart of the vast majority of mesh codes. In 2D, Marching Square, the 2D version of Marching Cube, extracts the contour and establishes the PSLG of every object in an image, even in a 3D mesh, to establish surface intersections [4].
But the Marching Square Technique, like the Marching Cube Technique, produces configuration ambiguities. While it is possible to resolve these pathological cases in the case of 2D images [5], it is much more difficult to do so in the case of labeled images.
Delaunay triangulation is also widely used in mesh technology. Schewchuk [6,7] proposes a constrained Delaunay triangulation by decimating inappropriate triangles according to angular or shape criteria, starting from a collection of predefined edges that make up the PSLG. This method applies to 2D binary images that are labeled.
In many meshing techniques, PSLG construction is an imperative preamble, as is the case for the frontal advanced method developed by Rassineux specifically in the case of 2D and 3D binary images [8,9]. Like Delaunay triangulation, it requires the PSLG to be defined for all objects in the image. However, if the image contour is sufficiently smooth, it is possible to proceed by parabolic approximation [10,11] or by splines [12].

2. Delaunay Constraint Triangulation of 2D Binary Images

In our study, we will use a constrained Delaunay triangulation (CDT), which is a variant of Delaunay triangulation. It was theoretically defined by Borgers for the non-convex domains [13,14]. To use this, of course, we need to construct the PSLG. In our case, the PSLG is not simply a collection of edges, but a vector path describing a simple closed curve. To ensure that the angles of the triangles are relatively homogeneous, i.e., around 60 degrees, we’ll perform an optimized point process [15]. This step avoids the mesh-optimization step [16,17]. We note that the idea of using a Voronoi diagram, even a centroidal one (CVT), to obtain a mesh with homogeneous triangles is always subject to the risk of cocyclicity if the seeds are collinear or if there are four cocyclic points [18]. These cases have all the more potential as an image is represented by pixels whose coordinates are integer values.
It is very important to specify that we are going to distinguish the case of binary images, where one label is the complement of the other, from the case of labeled images, where each label must be defined by the adjacency of the set of labels that are mytoyen to it, which makes the PSLG more complex to establish. In the binary case, the PSLG is a closed, continuous curve; in the labeled case, the PSLG is a closed, piecewise continuous curve. Image meshing in the case of labeled images will be studied in a forthcoming publication.
Our 2D binary-image-triangulation procedure can be synthesized in several stages:
Figure 1 illustrates the main triangulation steps. Starting from a 2D binary image, Figure 1a, we detect all the points on which the PSLG vectors will be positioned, Figure 1b. Next, the image contour is calculated using the morphological gradient, Figure 1c. Finally, each PSLG vector is defined by iterative geodesic reconstruction along the image gradient. The result is the morphological triangulation of the 2D binary image, Figure 1e.

2.1. Choice of a Binary 2D Image

We chose an X arbitrary complex shape composed of pixels with high morphological complexity, Figure 2, represented by areas circled in red.
These areas indicate that cusps B, thin parts A, and strong concave components B. The set X is not simply connected; it contains holes C, one of which is very close to the outer contour of X, so that X is relatively thin locally. The representation of X in a discrete frame is a binary image matrix composed of a label and its complementary, represented in the matrix by 1 and 0, respectively. Figure 2 shows an example of an image matrix corresponding to a detail of the form X.

2.2. Image Contouring Using Morphological Tools

To establish the image’s PSLG, we first need to define the image contour. Several techniques exist to determine the contour of an image, we have chosen to use the tools of mathematical morphology. This contour is then used to define the vector path of the PSLG.
Determining the contours of objects in an image is a complex process in image analysis, particularly if the image is made up of pixels with a high dynamic range of numerical values. There are, however, a number of methods available for this purpose [19,20,21]. For a binary image composed of pixels, the selection of an object’s edge pixels is trivial, since an image edge pixel (1) must have at least one of its sides connected to a background pixel (0). This simplifies the determination of object contours for simple configurations. The contour of a set is the morphological gradient invented by Beucher. It applies to functions f R n and to sets X R n , which is the case for binary images. In this case, the set formulation of the gradient is defined as the subtraction of the dilation of X by a ball B of radius r centered on a point of the image x:
δ ( B , x , r ) ( X )
reduced by the erosion of X by a ball B with the same radius r and the same center x:
ε ( B , x , r ) ( X )
Note that there are several formulations of the erode of X: ε ( B , x , r ) ( X ) , ε ( B , x ) ( X ) , or ε ( B ) ( X ) , respectively of the dilated X: δ ( B , x , r ) ( X ) , δ ( B , x ) ( X ) or δ ( B ) ( X ) . We choose the notations ε ( B , x ) ( X ) for the eroded X and δ ( B , x ) ( X ) for the dilated X.
In this case, the Beucher gradient is defined by:
( X ) = δ B ( r ) ( X ) ε B ( r ) ( X )
In our study, we chose to use the lower or inner or interior gradient ( X ) , Figure 3c, qui est defined by the set X, Figure 3a, minus its morphological erosion ε B ( X ) , Figure 3b.
In the lower morphological gradient, this derivation direction allows us to stay within the X set.
Figure 3 illustrates the various steps required to determine the image contour.
In practice, the gradient of X is constructed by the intersection of X with the complementary image of X eroded. These elementary operations modify the shape of a set X using a structuring element, usually a ball B of radius r and centered at a point x of the image B ( x , r ) . Other notations include B ( r ) or simply B.
In the case of digital images, the lower ( X ) gradient results from the intersection of the image matrix, Figure 3d with detail A, and the complementary of the erosion matrix, Figure 3e. The result of the morphological gradient is a binary image matrix, Figure 3f, whose values at one correspond to the contour defined by the Beucher gradient.
Note that this calculation follows the intuitive idea of a classical derivative by considering the constant label areas of the image as zero. It gives a value at the boundary of X. For a binary image, we assign one to all non-zero values of the gradient. This approach, applied to the entire X image, is used to determine the global contour, Figure 3c.
We also note that Beucher also proved that the morphological gradient and the gradient defined in the continuous case ∇ are equal.

2.3. Sample Points on the Morphological Gradient Image

The points sampled along the image of the X gradient are used to construct the PSLG. The random sampling of points in the gradient image matrix does not guarantee controlled point spacing. Furthermore, to best describe the shape of the set X, the extremities of the vectors must be placed on remarkable points of the contour: points or concavities. For real shapes that are sometimes complex, these points cannot always be located analytically using splines or polynomials on bends or inflections in the contour.

2.4. Detection of Remarkable Points on the Image Contour

There are three types of remarkable points. They are located on convex parts in red, Figure 4, while cusps or concavities in the image are shown in blue and green, Figure 4.

2.4.1. Remarkable Points on the Convex Parts of X

The remarkable points on the convexities of X are located on the S q ( X ) skeleton of the X Endoskeleton [22].

2.4.2. Skeletonization of X

Skeletonization is a well-known procedure in mathematical morphology. It is defined by morphological openings based on two fundamental operations, dilation and erosion.
Let B ( x , r ) be an open ball on B with center x and radius r with B ( x , r ) B ( x , r ) . S r ( X ) is the ensemblist subtraction of this morphological erosion of X reduced by the unit opening on this erode:
S r X = E B ( x , r ) X γ B ( x , η ) E B ( x , r ) X
In detail A of Figure 5a, we first erode X, Figure 5b.
We realize the morphological opening of this erosion, i.e., we erode and then dilate this erode. The result is that only the thin end of X, Figure 5c, disappears. X dilated by this opening means that only this point remains, Figure 5d.
The skeleton of X will be the union of the centers of these maximal balls:
S q X = r > 0 η > 0 E B ( x , r ) X γ B ( x , η ) E B ( x , r ) X
The first point of the skeleton S r ( X ) , Figure 5d, corresponds to the center of a circle tangent to only two points on the contour, Figure 6b, of X.
Figure 6a represents its previously calculated inner gradient.
The skeleton is an iterative process, and each point of the skeleton corresponds to the center of a ball B of a maximal circle of radius r, Figure 6b.
The Lantuéjoul Skeleton Formulation is also known as the maximal ball skeleton. The skeleton is thinly homotopic because it retains the same number of connected components of X, Figure 6c,d.

2.4.3. Detection of Simple Points on S q ( X )

The digital representation of the skeleton is an image whose thickness is at most one pixel; this is known as the line of a skeleton, Figure 7a.
The points of the samples are the extremity or skeleton end points.
We carry out a hit-and-miss operation to extract the simple points of the skeleton, which are the remarkable points of the convex parts of X, Figure 7d.
Figure 7b shows that only the conformal configurations of the simple points are considered; the result of H M T ( X ) leads to a sub-matrix 0 0 0 0 1 0 0 0 0 located exactly at the position of the single point. A non-conformal configuration leads to a zero sub-matrix.

2.4.4. Remarkable Points on the Concave Parts of X

Remarkable points located on the concavities and cusps of X are detected on the skeleton of X’s complement Exoskeleton. We therefore perform exactly the same operations as before on X c , Figure 8.
The various remarkable points of the PSLG are brought together in an image, Figure 9c, by joining the points extracted from the convexities, Figure 9a, and concavities, Figure 9b, of X.

2.5. Construction of the Contour Vectors of the PSLG

2.5.1. Position of the Problem—Remark on Euclidean Metrics

The PSLG cannot be constructed by calculating the nearest neighbor from a sampling point.
Let P 0 be the nearest Euclidean neighbor of P 1 , Figure 10a, and the vector P 0 P 1 is established.
On the other hand, P n is closer to P 1 than P 2 , so establishing the vector P 1 P n is a break in the vector definition of the contour, Figure 10b.

2.5.2. Sampling of PSLG Points by Successive Geodesic Morphological Dilation

Between two successive remarkable points, we calculate δ G ( n ) ( P i ) , the unitary iterative geodesic dilation of the first remarkable point P i , which we call the geodesic seed, on the ( X ) contour up to the second remarkable point. At each iteration i = λ , with λ = c t e for the demonstration, a new point P i λ is established, Equation (6):
δ G ( λ ) ( P i ) = δ ( δ ( δ λ t i m e s ( P i ) G ) G ) G o r i f w e a d m i t t h a t δ G ( P i ) = d e f ( P i B ( x , r ) ) G s o δ G λ ( P i ) = δ G ( P i ) . . . δ G ( P i ) λ t i m e s
The dilatation is isotropic in R n so that if P i is the germ, each δ G λ ( P i ) leads to two possible directions of propagation for the first point, i = 0 , and δ G ( λ ) ( P 0 ) leads to two possible positions of P 1 , Figure 11a.
To construct the PSLG, we choose an arbitrary direction, Figure 11b.
A new point P i + 1 is placed, and we therefore define a vector P i P i + 1 . In Figure 11b, the vectors P 0 P 1 and P 1 P 2 are established.
The process of constructing vectors is continued by iterative geodesic dilation until idempotence is reached, thus closing the contour of each object, Equation (7):
δ ( δ G ( n ) ( P i ) ) = δ G ( n ) ( P i )
At idempotency, we say that we achieved a geodesic reconstruction of G by successive geodesic dilations of the unit dimensions, Equation (8):
γ G ( P i ) = R G ( P i ) = δ G + ( P i )
Figure 11b shows that geodesic idempotency is achieved at the construction of P n P 0 .
These vectors, constructed by geodesic expansion, are known as PSLG geodesic vectors.

2.6. Adaptive Sampling of Triangulation Points

To ensure a good definition of the contour, locating the remarkable points is a necessary but not sufficient condition. It is also necessary for the vector polygonal curve thus established to remain injective; it must not intersect itself, thus respecting the principle of the Jordan curve [23] illustrated in Figure 12.
For example, for any Γ Jordan’s curve in R 2 , injective by definition, the polygonal curve induced by discretization points that are too far apart creates a vector, in red in Figure 12, which breaks the injective character of the curve.
Figure 12 illustrates a case of the non-injectivity of Jordan’s curve by establishing the vector P 8 P 9 , which intersects the vectors P 4 P 5 and P 5 P 6 .
This singularity is detected when the ratio k between the Euclidean distance and the geodesic distance is too high. In practice, it should not exceed three times the Euclidean distance:
d X x , y = k d x , y w h e r e 1 k 3
In the morphological sense, the fine parts of the contour of X are detected by the intersection of the contour of X and the complementary of X minus its opening of size r:
P ( X ) = ( X ) ( X ( X o B r ) c )
The radius r of the ball B makes it possible to locate fine zones, Figure 13a, on which we carry out a densification λ 2 = 2 λ so that the polygonal curve retains its injective character, Figure 13b.

2.7. Location of Points in X

The second stage of Delaunay’s constrained triangulation consists of distributing points uniformly throughout the X set in order to guarantee optimum relative equality of the triangles.
In our case where X is not included in a parallelepipedic field, the Poisson point process can be established simply [22]. Lantuéjoul redefines a process of uniform point implantation inside any set [15]. The hit-and-run procedure in 2D, illustrated in Figure 14a, begins by implanting a point x i when the intersection of a straight line L i passes through this point when the contour of the image ( X ) is non-empty: L i ( X ) .
To ensure that the points are evenly spaced, we introduce a repulsion distance r around each of the x i points. This distribution and spacing allow us to guarantee a homogeneous triangulation of our image.
The probability of a point x being contained in a mask X is
P ( x , X ) = Z f ( x , y ) d y x X
with
f ( x , y ) = 2 d w d 1 l ( x , y , X ) x y d 1
where x X ; x y ; d , ω = constant; and l ( x , y , X ) is the length of the segment ( x , y ) X .
This iterative process is continued until the mesh density, Figure 14b, is reached. To establish triangles with a shape close to equilateral, we impose a repulsion distance λ on the points x i . Note that the introduction of this distance breaks the uniformity property of the distribution but allows us to establish a homogeneous distribution of the points included in X:
d ( x i , x i + 1 ) λ
All the triangulation points are combined with the remarkable points. The set of points required for the constrained Delaunay triangulation is shown in Figure 15.

2.8. Results of Delaunay Constraint Morphological Triangulation

Figure 16 illustrates the automatic meshing of the first label, label 1, in the image.
The triangulation faithfully respects the shape constraint by positioning the remarkable points. It should also be noted that with this method, there is no Staircase effect due to the discretization of the image into pixels.

2.9. Triangulation of the Set’s Complementary X

The Delaunay constrained triangulation of the 0 label is performed on the complementary image of the 1 label. It is produced using the same process as described above. The triangulation of this label must absolutely respect the common contour between the two labels while ensuring the continuity of the triangulation, Figure 17.
The final triangulation result demonstrates that coupling mathematical morphology with Delaunay constrained triangulation allows us to define a robust, automatic, and optimized procedure for the method proposed in this study.

2.10. Controlled Densification of the Triangulation

2.10.1. Morphological Densification

An important improvement to this technique concerns the automatic and controlled densification of a mesh density in fine areas of the image. To solve this problem, differentiated densification is proposed in these critical areas.
The densification concerns the fine zones of X, which implies a redensification of the local contour of these zones.

2.10.2. Local Densification of X

In mathematical morphology, the ball B of radius r, B ( r , x ) , can be used as an indicator of these fine areas. We therefore define the fine morphological parts of X, with P X being the set intersection between X and the complementary of its open by a ball B of a radius slightly larger than the size of the fine zones, Equation (14):
P X = X ( X o B ( r , x ) ) c
In practice, r can be calculated using an opening granulometry operation [22].
In our case, Figure 18 illustrates the zones considered to be fine in the one label of the image.
The location of these critical zones in blue, Figure 19, allows for the use of a different local mesh density θ 2 .
For example, a double density of points θ 2 = 2 θ 1 can be defined in these new morphologically localized zones in blue, Figure 19b.

2.10.3. Local Densification of the Contour X

To remain consistent with θ 2 , it is important to redefine a new λ 2 = 2 λ locally on the contour in this new area of the image. The areas of the contour concerned by the local densification of X, noted P g , are deduced from P X . In fact, they are identified as being the intersection between the X contour and P X , Figure 20:
[ H ] P g = P X ( X )
Figure 20 illustrates the contour zones adjoining the X zones identified previously. The location of these critical zones enables a different local mesh density λ 2 to be used, Figure 19b. For example, a double density of points λ 2 = 2 λ 1 can be defined in these new contour zones in green, Figure 19b, while a λ 1 density is implemented on the rest of the contour in black, Figure 19b.

2.10.4. Union of Densities and Triangulation

The different densities λ 1 , λ 2 , θ 1 , and θ 2 are grouped together, and the triangulation process is carried out continuously on this anisotropic density field, Figure 19c. It is important to note that the different densities are mutually constrained; when a point in a process is generated, it is defined with a repulsion zone in which the implantation of a new point is forbidden.

2.10.5. Internal De-Densification Control θ

At constant λ 1 and λ 2 , the PSLG defined by the contour vector constraint and established by the geodesic vectors whose remarkable points are one of the morphological constraints makes it possible to establish different mesh densities θ 1 and θ 2 while maintaining a Hausdorff distance of less than one pixel. The mesh shown in Figure 21 has a mesh density of θ 2 = 1 2 θ 1 , Figure 21b, and θ 3 = 1 5 θ 1 , Figure 21c.
Figure 21c illustrates the robustness of the method, which forces the triangulation to be included in X. The triangulation remains coherent despite a relatively low θ density. However, there is a flattening of certain triangulations, which is not necessarily inappropriate for image simplification or visualization applications that only require a reduction in the data (pixels).
The number of elements is directly linked to the different densities θ and λ set by the user: these are two triangulations input data. Compared with Marching-Type Techniques, where the mesh density is at least equal to the number of pixels, it is often necessary to simplify and then optimize in order to avoid the Staircase effect of the pixels.

2.10.6. Hausdorff Distance

The positioning of the triangles on the image contour is checked by measuring any discrepancy between the real image and the mesh. This must be as small as possible. The Hausdorff distance is used to measure this gap. Huttenlocher applies this formulation to digital screening [24], and Aspert measures the deviation of a triangular mesh from a surface [25].
In our case, we need to evaluate the distance separating the contour established by the Beucher gradient ( X ) , Figure 22b, from the vectors of the triangulation contour, Figure 22a.
This distance is defined by
d ( ( X ) , L ( X ) ) = max sup x ( X ) d ( x , L ( X ) ) , sup x L ( X ) d ( x , ( X ) )
in the Euclidean formulation and
d ( ( X ) , L ( X ) ) = inf { ε , ( X ) δ B ( ε ) ( L ( X ) ) , L ( X ) δ B ( ε ) ( ( X ) ) }
in the morphological formulation, where B ( ε ) is the closed ball of radius ε and d ( x , ( X ) ) = inf y ( X ) d ( x , y ) , the Euclidean distance from x to ( X ) .
In our approach, the measurement of this distance is less than the pixel d ( ( X ) , L ( X ) ) < 1 , Figure 22c, so we consider that the two contours are superimposable.
We check that our method preserves the integrity of the contour of each of the objects in the image.

2.10.7. Comparison with the Marching Square Technique

The aim of this section is to position our approach in relation to current techniques. In the field of Marching Square, the list of calculation codes is far from exhaustive, but we chose Avizo Fire (Edition 8.0.0) for comparison. The aim is to highlight the problems associated with this method.
With the Marching Square Technique, the mesh density is maximal, and the number of elements is at least equal to the number of pixels, Figure 23a.
As Marching Square faithfully follows a shape composed of pixels, we observe a Staircase discretization of the mesh at the boundary of the object, Figure 23b,c and Figure 24b.
However, there are other smoothing methods, such as the one established by [26] or [27], for example.
It is important to note that a drastic reduction in the number of mesh elements can lead to breaks in the continuity of the mesh, Figure 24c.

3. Application to Microstructure Images from Scientific Fields

We have explored many scientific fields, such as medicine and biology, but it is in the field of metallurgy that we have found images of materials with shapes whose morphology can be extremely complex, and whose contours can be difficult to approximate with a polynomial approximation such as a spline.
The chosen example is a cross-section of an agglomerate of silver particles mixed with particles of oxides (tin and bismuth), Figure 25.
These powders, known as STOB, silver tin oxide with bismuth addition, are produced chemically using a traditional powder metallurgy technique of agglomerate granulometry adjusted by thermal granulation. This ensures that the porosity and oxide additions are evenly distributed. Tin oxide, S n O 2 , reinforces the matrix, while bismuth oxide, B i 2 O 3 , and copper oxide, C u O , improve the wetting of the tin oxide by the silver.
The morphological complexity of the image is obvious, as it contains numerous cusps and holes. Establishing the PSLG on this image is tricky using traditional methods. The image presented in Figure 25 is the result of a segmentation of a grayscale image acquired using an electronic microscope.
The morphological Delaunay constraint triangulation procedure is performed on the entire image, Figure 26.
All the morphological complexities were ideally managed by our algorithm, and the Hausdorff distance calculation is well below one. This precision is all the more apparent in the details, Figure 27a, where our meshing method enables precise triangulation, Figure 27c, for complex morphology, Figure 27b or even Figure 27e, when the thickness of the objects in the image is one pixel, Figure 27d.

4. Conclusions

Delaunay constrained morphological triangulation applied to a binary image can be considered an automatic and universal procedure, as it is unbiased both in the definition of the PSLG and in the number of labels to be considered, which is not limited, unlike the Marching Technique.
What is also notable about our meshing method is that the number of meshing elements is optimized and much lower than the number of pixels in the image. It is therefore not necessary to supplement the procedure with remeshing techniques. This can sometimes be detrimental to the final mesh, i.e., remeshing techniques, which are often based on the principle of element decimation, which can lead to the local deletion of fine components of the image in our meshing procedure. Our method is therefore particularly well suited to experimental binary images, as it is capable of accurately describing all the real morphologies of microstructures that are often difficult to model using polynomials. A Hausdorff distance is always less than the size of a pixel, which makes our method both precise and accurate. In light of these promising results, we will be proposing in the future the generalization of the method to 2D labeled images.

5. Future Work: Labeled Case (Part 2)

The challenges associated with labeled images are particularly pronounced in many fields. In medical imaging, the complexity lies in the fact that the contour of an anatomical structure is often defined by the contours of adjacent structures. For example, the contour of an organ may be partially defined by neighboring organs. Similarly, in the case of EBSD images in materials science, the contours of crystalline grains are determined by adjacent grains, complicating the precise definition of boundaries. Managing junction points where several grains meet and share edges between grains requires high precision to avoid topological errors. In both fields, these complex interactions require advanced techniques and robust algorithms to faithfully represent the structures and their interactions in a Planar Straight-Line Graph (PSLG).

Author Contributions

F.N.: formalism, programming, writing of the first version of the article. T.K. and A.I.: supervision of the work, formalism, reading and correction of the writing. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

Data is contained within the article.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Langer, S.A.; Fuller, E.R.; Carter, W.C. 00f: An image-based finite-element analysis of material microstructures. Comput. Sci. Eng. 2001, 3, 15–23. [Google Scholar] [CrossRef]
  2. Zhao, J.X.; Thierry, C.; Decencière, E.; Jeulin, D.; Cárdenas-Peña, D.; Silva, L. Direct multiphase mesh generation from 3D images using anisotropic mesh adaptation and a redistancing equation. Comput. Methods Appl. Mech. Eng. 2016, 309, 288–306. [Google Scholar] [CrossRef]
  3. Lorensen, W.E.; Cline, H.E. Marching cubes: A high resolution 3D surface construction algorithm. Comput. Graph. 1987, 21, 163–169. [Google Scholar] [CrossRef]
  4. Jia, X.; Li, K.; Cheng, J. Computing the Intersection of Two Rational Surfaces Using Matrix Representations. Comput.-Aided Des. 2022, 150, 103303. [Google Scholar] [CrossRef]
  5. Thiagarajan, V.; Shapiro, V. Adaptively weighted numerical integration over arbitrary domains. Comput. Math. Appl. 2014, 67, 1682–1702. [Google Scholar] [CrossRef]
  6. Shewchuk, J.R. Triangle: Engineering a 2D quality mesh generator and Delaunay triangulator. In Applied Computational Geometry Towards Geometric Engineering; Lin, M.C., Manocha, D., Eds.; Springer: Berlin/Heidelberg, Germany, 1996; pp. 203–222. [Google Scholar]
  7. Khoury, M.; Shewchuk, J.R. Restricted Constrained Delaunay Triangulations. In Proceedings of the 37th International Symposium on Computational Geometry (SoCG 2021), Buffalo, NY, USA, 7–11 June 2021; Buchin, K., Colin de Verdière, E., Eds.; Dagstuhl: Wadern, Germany, 2021. Leibniz International Proceedings in Informatics (LIPIcs). Volume 189, pp. 49:1–49:16. [Google Scholar] [CrossRef]
  8. Rassineux, A. 3D mesh adaptation. Optimization of tetrahedral meshes by advancing front technique. Comput. Methods Appl. Mech. Eng. 1997, 141, 335–354. [Google Scholar] [CrossRef]
  9. Rassineux, A. Robust conformal adaptive meshing of complex textile composites unit cells. Compos. Struct. 2022, 279, 114740. [Google Scholar] [CrossRef]
  10. Yang, Z.; Seo, Y.H.; wan Kim, T. Adaptive triangular-mesh reconstruction by mean-curvature-based refinement from point clouds using a moving parabolic approximation. Comput.-Aided Des. 2010, 42, 2–17. [Google Scholar] [CrossRef]
  11. Wang, P.; Wang, Z.; Xin, S.; Gao, X.; Wang, W.; Tu, C. Restricted Delaunay Triangulation for Explicit Surface Reconstruction. ACM Trans. Graph. 2022, 41, 180. [Google Scholar] [CrossRef]
  12. Grošelj, J.; Kapl, M.; Knez, M.; Takacs, T.; Vitrih, V. A super-smooth C1 spline space over planar mixed triangle and quadrilateral meshes. Comput. Math. Appl. 2020, 80, 2623–2643. [Google Scholar] [CrossRef]
  13. Börgers, C. Generalized delaunay triangulations of non-convex domains. Comput. Math. Appl. 1990, 20, 45–49. [Google Scholar] [CrossRef]
  14. Paul Chew, L. Constrained delaunay triangulations. Algorithmica 1989, 4, 97–108. [Google Scholar] [CrossRef]
  15. Lantuejoul, C. Geostatistical Simulation: Models and Algorithms; Collezione Legale Pirola; Springer: Berlin/Heidelberg, Germany, 2002. [Google Scholar]
  16. Khan, D.; Yan, D.M.; Wang, Y.; Hu, K.; Ye, J.; Zhang, X. High-quality 2D mesh generation without obtuse and small angles. Comput. Math. Appl. 2018, 75, 582–595. [Google Scholar] [CrossRef]
  17. Hinderink, S.; Mandad, M.; Campen, M. Angle-bounded 2D mesh simplificationImage 1. Comput. Aided Geom. Des. 2022, 95, 102085. [Google Scholar] [CrossRef]
  18. Gledel, V.; Parreau, A. Identification of points using disks. Discret. Math. 2019, 342, 256–269. [Google Scholar] [CrossRef]
  19. Andriyanov, N.A.; Dementyiev, V.E. Determination of borders between objects on satellite images using a two-proof doubly stochastic filtration. J. Phys. Conf. Ser. 2019, 1353, 012006. [Google Scholar] [CrossRef]
  20. Guaragnella, C.; Rizzi, M. Simple and Accurate Border Detection Algorithm for Melanoma Computer Aided Diagnosis. Diagnostics 2020, 10, 423. [Google Scholar] [CrossRef] [PubMed]
  21. Lisowska, A. Efficient Edge Detection Method for Focused Images. Appl. Sci. 2022, 12, 11668. [Google Scholar] [CrossRef]
  22. Soille, P. Morphological Image Analysis: Principles and Applications; Springer: Berlin/Heidelberg, Germany, 1999. [Google Scholar]
  23. Jordan, C. Cours d’Analyse de l’École Polytechnique; Cambridge University Press: Cambridge, UK, 1887; pp. 587–594. [Google Scholar]
  24. Huttenlocher, D.; Klanderman, G.; Rucklidge, W. Comparing images using the Hausdorff distance. IEEE Trans. Pattern Anal. Mach. Intell. 1993, 15, 850–863. [Google Scholar] [CrossRef]
  25. Aspert, N.; Santa-Cruz, D.; Ebrahimi, T. MESH: Measuring errors between surfaces using the Hausdorff distance. In Proceedings of the 2002 IEEE International Conference on Multimedia and Expo, 2002. ICME ’02. Proceedings, Lausanne, Switzerland, 26–29 August 2002; Volume 1, pp. 705–708. [Google Scholar] [CrossRef]
  26. Taubin, G. A signal processing approach to fair surface design. In Proceedings of the 22nd Annual Conference on Computer Graphics and Interactive Techniques, ACM, Los Angeles, CA, USA, 6–11 August 1995; pp. 351–358. [Google Scholar]
  27. Fábián, G. Generalized Savitzky–Golay filter for smoothing triangular meshes. Comput. Aided Geom. Des. 2023, 100, 102167. [Google Scholar] [CrossRef]
Figure 1. Two-dimensional binary-image-triangulation procedure, (a) choice of a binary 2D image, (b) detection of remarkable image points, (c) image contouring using morphological tools, (d) construction of geodesic vectors for PSLG construction, and (e) morphological triangulation of a 2D binary image.
Figure 1. Two-dimensional binary-image-triangulation procedure, (a) choice of a binary 2D image, (b) detection of remarkable image points, (c) image contouring using morphological tools, (d) construction of geodesic vectors for PSLG construction, and (e) morphological triangulation of a 2D binary image.
Computation 13 00052 g001
Figure 2. Arbitrary complex shape and matrix representation of X with peaks A, cusps B, and holes C and D.
Figure 2. Arbitrary complex shape and matrix representation of X with peaks A, cusps B, and holes C and D.
Computation 13 00052 g002
Figure 3. Ensemblist lower morphological gradient set and matrix representation of X, (a) X, (b) erosion of X, (c) gradient of X, (df) Ensemble definition of image whith pixels.
Figure 3. Ensemblist lower morphological gradient set and matrix representation of X, (a) X, (b) erosion of X, (c) gradient of X, (df) Ensemble definition of image whith pixels.
Computation 13 00052 g003
Figure 4. Sets of remarkable points on the convexities, in red; concavities, in green; and cusp points, in blue, of X.
Figure 4. Sets of remarkable points on the convexities, in red; concavities, in green; and cusp points, in blue, of X.
Computation 13 00052 g004
Figure 5. First point S r ( X ) of the skeleton of X, (a) set X, (b) erosion of X, (c) opening on this erosion, and (d) first point of the skeleton.
Figure 5. First point S r ( X ) of the skeleton of X, (a) set X, (b) erosion of X, (c) opening on this erosion, and (d) first point of the skeleton.
Computation 13 00052 g005
Figure 6. Skeleton of X, (a) set X, (b) maximum ball on X, and (c,d) skeleton of X.
Figure 6. Skeleton of X, (a) set X, (b) maximum ball on X, and (c,d) skeleton of X.
Computation 13 00052 g006
Figure 7. Detection of remarkable points on convex parts of X, (a) skeleton of X, (b) detection of a point, (c) non-detection of a point, and (d) location of all points in the convex part of X.
Figure 7. Detection of remarkable points on convex parts of X, (a) skeleton of X, (b) detection of a point, (c) non-detection of a point, and (d) location of all points in the convex part of X.
Computation 13 00052 g007
Figure 8. Detection of remarkable points on the concave parts and cusps of X.
Figure 8. Detection of remarkable points on the concave parts and cusps of X.
Computation 13 00052 g008
Figure 9. Simple points on (a) S q ( X ) , (b) S q ( X c ) , and (c) union of points on the gradient ( X ) .
Figure 9. Simple points on (a) S q ( X ) , (b) S q ( X c ) , and (c) union of points on the gradient ( X ) .
Computation 13 00052 g009
Figure 10. Euclidean error, (a) nearest distance consideration, (b) geodesic distance consideration.
Figure 10. Euclidean error, (a) nearest distance consideration, (b) geodesic distance consideration.
Computation 13 00052 g010
Figure 11. Construction of geodesic vectors, (a) geodesic propagation, (b) iterative definition of PSLG’s vector.
Figure 11. Construction of geodesic vectors, (a) geodesic propagation, (b) iterative definition of PSLG’s vector.
Computation 13 00052 g011
Figure 12. Non-injectivity error.
Figure 12. Non-injectivity error.
Computation 13 00052 g012
Figure 13. Adaptive sampling, (a) identification of areas to be densified with p a r t i a l ( X ) and (b) controlled densification of these areas.
Figure 13. Adaptive sampling, (a) identification of areas to be densified with p a r t i a l ( X ) and (b) controlled densification of these areas.
Computation 13 00052 g013
Figure 14. (a) Iterative construction of hit and run and (b) density implementation θ .
Figure 14. (a) Iterative construction of hit and run and (b) density implementation θ .
Computation 13 00052 g014
Figure 15. Combining all the triangulation points.
Figure 15. Combining all the triangulation points.
Computation 13 00052 g015
Figure 16. Delaunay triangulation constraint X.
Figure 16. Delaunay triangulation constraint X.
Computation 13 00052 g016
Figure 17. Delaunay triangulation constraint X and its complementary.
Figure 17. Delaunay triangulation constraint X and its complementary.
Computation 13 00052 g017
Figure 18. Identification of fine areas of X.
Figure 18. Identification of fine areas of X.
Computation 13 00052 g018
Figure 19. Controlled densification, (a) fine zone of X, (b) controlled densification of these zones, and (c) triangulation resulting from this new densification.
Figure 19. Controlled densification, (a) fine zone of X, (b) controlled densification of these zones, and (c) triangulation resulting from this new densification.
Computation 13 00052 g019
Figure 20. Identification of fine areas of the X contour.
Figure 20. Identification of fine areas of the X contour.
Computation 13 00052 g020
Figure 21. Mesh density (a) θ 1 , (b) θ 2 = 1 2 θ 1 , and (c) θ 3 = 1 5 θ 1 .
Figure 21. Mesh density (a) θ 1 , (b) θ 2 = 1 2 θ 1 , and (c) θ 3 = 1 5 θ 1 .
Computation 13 00052 g021
Figure 22. Hausdorff distance, (a) triangulation contour, (b) ( X ) , and (c) superposition of the two contours.
Figure 22. Hausdorff distance, (a) triangulation contour, (b) ( X ) , and (c) superposition of the two contours.
Computation 13 00052 g022
Figure 23. Stairs in Marching Square.
Figure 23. Stairs in Marching Square.
Computation 13 00052 g023
Figure 24. De-densification of Marching Square.
Figure 24. De-densification of Marching Square.
Computation 13 00052 g024
Figure 25. Image of a silver microstructure.
Figure 25. Image of a silver microstructure.
Computation 13 00052 g025
Figure 26. Results of morphological triangulation.
Figure 26. Results of morphological triangulation.
Computation 13 00052 g026
Figure 27. Detail of the triangulation of the binary image, (a) binary image, (b) complex shape, (c) associated mesh, (d) object with a local thickness of 1 pixel, and (e) associated mesh.
Figure 27. Detail of the triangulation of the binary image, (a) binary image, (b) complex shape, (c) associated mesh, (d) object with a local thickness of 1 pixel, and (e) associated mesh.
Computation 13 00052 g027
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

N’Guyen, F.; Kanit, T.; Imad, A. Unbiased Finite Element Mesh Delaunay Constrained Triangulation Applied to 2D Images with High Morphological Complexity Using Mathematical Morphology Tools Part 1: Binary Images. Computation 2025, 13, 52. https://doi.org/10.3390/computation13020052

AMA Style

N’Guyen F, Kanit T, Imad A. Unbiased Finite Element Mesh Delaunay Constrained Triangulation Applied to 2D Images with High Morphological Complexity Using Mathematical Morphology Tools Part 1: Binary Images. Computation. 2025; 13(2):52. https://doi.org/10.3390/computation13020052

Chicago/Turabian Style

N’Guyen, Franck, Toufik Kanit, and Abdellatif Imad. 2025. "Unbiased Finite Element Mesh Delaunay Constrained Triangulation Applied to 2D Images with High Morphological Complexity Using Mathematical Morphology Tools Part 1: Binary Images" Computation 13, no. 2: 52. https://doi.org/10.3390/computation13020052

APA Style

N’Guyen, F., Kanit, T., & Imad, A. (2025). Unbiased Finite Element Mesh Delaunay Constrained Triangulation Applied to 2D Images with High Morphological Complexity Using Mathematical Morphology Tools Part 1: Binary Images. Computation, 13(2), 52. https://doi.org/10.3390/computation13020052

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop