Manuscript Offprint
arXiv:2611.09745Multiscale Closing Index (MCI) for measuring structural similarity between 2D point sets
ABSTRACT
We introduce Multi-scale Closing Index (MCI), a new dissimilarity measure for evaluating the alignment of two 2D point sets. MCI is bounded between 0 and 1 and is based on multiscale mathematical morphology operations, with smaller values indicating greater structural agreement. The measure was motivated by the need to assess the quality of registration between point sets representing cell populations in biological images. To evaluate its behaviour under controlled conditions, we generated synthetic point clouds from Perlin-noise-based spatial structures, following established approaches for simulating biologically plausible spatial organization. We assessed MCI between those point clouds and different transformed versions, obtained by local perturbation, point removal, translation, rotation and addition of impulsive noise. Across these experiments, the dissimilarity MCI increased gradually and consistently with perturbation severity, while showing a clear discontinuity between clouds originating from the same underlying spatial structure and point clouds generated from different structures. We further compared MCI with commonly used point-set distances, including Hausdorff-based measures and Sliced Wasserstein distance. These experiments show the ability of MCI to capture structural agreement and quantify deviations between point sets, highlighting its potential as a complementary metric for evaluating two-dimensional point-set registration.
Keywords 2D point sets similarity measure · alignment quality score · morphological closing · Jaccard index.
1 Introduction
Point-set registration aims to align two or more point sets by estimating correspondences and a spatial transformation that brings them into agreement [14, 19, 30]. It is widely used in computer vision, robotics, medical imaging, and spatial data analysis, but remains challenging in the presence of noise, outliers, missing points, partial overlap, and heterogeneous sampling.
Evaluating the quality of an alignment is itself nontrivial because different measures capture different notions of disagreement. Nearest-neighbour distances quantify local geometric error, whereas distributional distances characterize the displacement of the point sets more globally. More elaborate kernel, probabilistic, graph-based, or correspondence-based criteria also exist, but many are designed as components of the registration procedure itself rather than as simple
ZAVA ET AL.
post-registration similarity measures. Here, we focus on three complementary references for already aligned 2D point sets.
We consider the 95th-percentile Hausdorff distance (HD95), which captures large local discrepancies while reducing the strong outlier sensitivity of the classical Hausdorff distance [6]; the Average Hausdorff Distance (AHD), which summarizes typical nearest-neighbour disagreement across the sets [2]; and the Sliced Wasserstein distance, which compares the two point sets as empirical spatial distributions and therefore provides a more global measure of displacement.
However, these distances do not explicitly quantify whether the spatial organization represented by the point clouds is preserved across different length scales. This is particularly relevant in spatial biology, where alignment should preserve meaningful organization beyond pointwise proximity [4]. This motivates assessing alignment through a representation that progressively incorporates spatial context, from fine local structure to broader organization.
We therefore introduce a multiscale morphological measure for comparing aligned 2D point sets. The proposed measure applies morphological operations over increasing radii and integrates the resulting agreement into a single dissimilarity score, thereby assessing how similarly the structures induced by the two point sets evolve across spatial scales. We compare it with HD95, AHD, and Sliced Wasserstein, selected as compact and complementary benchmarks for local extreme, local average, and global distributional disagreement.
In this paper, Section 2 reviews similarity measures for evaluating point-set alignment, as well as basics of mathematical morphology operators. Section 3 introduces the proposed multiscale morphological structural measure. Section 4 presents the experimental evaluation and comparative analysis. Section 5 discusses the strengths and limitations of the approach, and concludes the paper.
Similarity measures for 2D point sets. Let , be two finite point sets in . We consider three established dissimilarity measures, with smaller values indicating better alignment: percentile Hausdorff, average Hausdorff, the Sliced Wasserstein distances. We write for the distance from a point to a set.
Hausdorff and percentile Hausdorff distances. The symmetric Hausdorff distance
is a classical metric for finite point sets [6,11], but, being determined by the single largest nearest-neighbour discrepancy, it is highly sensitive to outliers, missing points, and sampling artefacts [6,28]. We therefore use the 95th-percentile Hausdorff distance (HD95). Let , and define analogously. Then
where denotes the empirical 95th percentile. HD95 retains sensitivity to large misalignments, while reducing the influence of a few extreme points, and it is a standard robust alternative in segmentation evaluation [28].
Average Hausdorff distance (AHD). It captures the overall nearest-neighbour discrepancy, rather than its upper tail:
It is considerably less sensitive to individual extreme points than [2,5].
Sliced Wasserstein distance. The Sliced Wasserstein distance provides an efficient approximation to optimal-transport comparison by projecting the two point sets onto a set of one-dimensional directions and computing the Wasserstein distance between the corresponding projected distributions [3,22,24,29]. For a unit direction , let
denote the projected point sets. Using directions , we approximate the 2-Sliced Wasserstein distance by
ZAVA ET AL.
where denotes the one-dimensional 2-Wasserstein distance between the empirical distributions of the projected points. Thus, unlike nearest-neighbour measures, Sliced Wasserstein captures differences in the overall spatial distribution of the two point sets.
None of the above measures explicitly evaluates agreement over a sequence of spatial scales. This motivates the proposed multiscale morphological criterion, which compares the point sets across progressively increasing morphological scales and aggregates these contributions into a single alignment score.
Basic concepts of MM. Mathematical morphology is a branch of mathematics which combines elements of fields such as set theory, lattice algebra and integral geometry to analyze geometrical structures [26] especially in image analysis [18]. Mathematical morphology studies operations that modify the shape of sets in a mathematical space, with dilation and erosion being two of its fundamental operations (see [16,25] for foundational references).
Let be a set and let be the closed ball of radius in , centered at the origin.
For any , the translation of by is denoted by . The dilation and erosion of by , denoted respectively and , are defined by [26]:
Thus, the dilation of by is the set of all points whose distance to is at most , whereas the erosion of by is the set of all points such that the closed ball of radius centered at is entirely contained in . Furthermore, where denotes the complement of .
The composition of followed by defines another fundamental morphological operation, called the closing by the structuring element :
The closing operator has the following fundamental properties. For all and :
-
Extensivity: . Thus, closing can fill gaps and bridge narrow connections, but does not remove points from .
-
Increasingness with respect to sets: . Hence, the inclusion relation between sets is preserved by closing.
-
Increasingness with respect to the radius: .
-
Idempotence: . Thus, applying the same closing operation more than once does not produce any further change.
-
Closing and convexity [16]: if is closed then, for any , where is the convex hull of . Hence if is also convex, then .
Furthermore, is the dual of the opening , defined by , in the sense that . Since , we get the following geometric interpretation for the closing:
In words, is the intersection of all the complement of closed balls which do not intersect . Note that, for , this is also what is called the -hull of [23], for .
3 Multiscale Closing Index
In this section, we introduce our dissimilarity measure, Multiscale Closing Index (MCI), together with some theoretical results.
Given two bounded measurable subsets and of with at least one of them with non-zero volume, their Jaccard index is the value
ZAVA ET AL.
where is the Lebesgue measure on the plane (whenever ). Clearly, . For every pair of bounded measurable subsets and of the plane, we define their Jaccard distance as
Theorem 1 ([15]). On the family of measure bounded subsets of the plane up to subsets with 0-measure, is a metric. More explicitly, is symmetric, satisfies the triangle inequality, and, for any pair of subsets and of the plane, if and only if their symmetric difference has measure 0.
In our setting, we are interested in applying the Jaccard metric to compare point clouds at different scales. First, given two point clouds and in the plane, and a certain scale , we define two subsets and and compare them using the Jaccard distance. We then let the scale vary and summarise the family in one index. In this way, we preserve some crucial properties of the Jaccard distance, but keeping into account the behaviour at different scales. As for the first step, we will use the closing as defined above. The following result will be useful to analyze some properties of our index.
Proposition 1. Let be compact, and let denote its convex hull. Then
If furthermore contains at least three non-colinear points or is convex, then the convergence also holds for the Hausdorff distance
Results on the convergence of closings to the convex hull have been known for long [16,25] but they were stated in the hit-or-miss topology, for which, like for the Hausdorff one, the non-convex sets of aligned points are counter-examples (e.g. if is a pair of points, for any ). Hence, the motivation of this proposition is to highlight this case and to state that it is not an issue with the Jaccard distance.
For a compact set containing non-colinear points, the result comes from the fact that 1. its convex hull has non-empty interior and 2. that any point is included in a closing for large enough. This is obvious for a finite set from the geometric interpretation of closings, and it can be generalized to any compact set thanks to Steinitz's theorem [27]. The case of a convex compact set of aligned points is obvious because then . The convergence holds with the Jaccard distance for a set of non-convex aligned points because any of its closings, as well as its convex hull, have zero Lebesgue measure.
We can now move on to the definition of our index. Let and be two point clouds in the plane and a fixed radius . The value is still scale-dependent as it looks only at a specific scale. We assemble these values by taking their normalised integral.
Definition 1. Let and be two point clouds in . The Multiscale Closing Index of and from radius up to radius , where , is defined as
If , we simply write .
Example 1. In Fig. 1, two sets of points are used to illustrate how the shapes change when the radius of the closing is increased. Intuitively, the MCI (0.63) is the proportion of the area of the rectangle of width (32 – 8) and height 1, that is under the curve.
The Multiscale Closing Index satisfies the following properties.
Proposition 2. Let .
-
takes values between 0 and 1.
-
is symmetric and satisfies the triangle inequality.
-
Given two point clouds and , if there is a finite set such that, for every , .
ZAVA ET AL.

Figure 1: From left to right: two point clouds X and Y; overlapping of subsequent closings with increasing radius, 16 and 28; graph of values for the list of radii .
Proof. Item 1. and the symmetry part of item 2. immediately follows from the definitions. Let us show the triangle inequality. Theorem 1 states, in particular, that satisfies the triangle inequality, and the pointwise inequality is preserved once the integral and the normalisation are applied.
Item 3. follows from the fact that the integrand function is 0 if and only if .
In the direction of item 3 of Proposition 2, the reader may wonder if the Multiscale Closing Index is able to distinguish points, i.e., being zero only if the two point clouds are the same. The MCI, however, does not satisfy this property for two concurring reasons. First, already the Jaccard metric can distinguish points only up to zero-measure: if and are two subsets whose symmetric difference has measure zero, then (Theorem 1). Furthermore, the closings of two different point clouds may coincide as soon as they have positive measure, as the following example shows.
Example 2. Let be the vertices of an equilateral triangle and be together with the center of the triangle. Below a certain radius both closings have zero measure and, for larger radii the closings are equal. Hence for every , .
Let us present a few more properties of the Multiscale Closing Index in relation to the convex hull. We shall first notice that, for a compact set of the plane, containing three non-colinear points is equivalent to , and also equivalent to the existence of such that for any . For such a set, which we will call generic, we will note .
Proposition 3. Let be two point clouds in .
-
For every , .
-
If and are generic, then: for every .
Proof. 1. It follows from the fact that the closings of and converge to the respective convex hulls (see Proposition 1).
- If , then, for every , , and so, for , , which implies that . Conversely, if , then and, given Proposition 1, s.t. . Then for large enough, .
4 Experiments and results
We designed a set of experiments to show the robustness and coherence of our index.
Synthetic dataset. We generated 48 synthetic two-dimensional point sets using Perlin noise [20, 21], which produces spatially correlated random fields and has been used to simulate biological and tissue-like spatial structures [9, 12, 13, 17]. All point sets were generated on a pixel domain using spatial-frequency parameters , corresponding approximately to characteristic spatial scales pixels.
ZAVA ET AL.
Twelve underlying spatial configurations were generated and each was sampled four times independently, yielding 48 point sets. Three types of fields were considered:
-
Simple (S4, S8, S16): two independent single-component fields for each (see Fig. 2 for an example of each one);
-
Multiweight Balanced (B4816): two realizations of a multiscale field combining components with and equal weights ();
-
Multiweight Custom (C416-Coarse, C416-Fine): two multiscale fields combining and , using coarse-dominated weights () and fine-dominated weights (), with two independent realizations of each configuration.
Different seeds were used for each Perlin component. For multicomponent fields, components were combined as a weighted sum of the raw Perlin noise values, and the resulting field was not further normalized. Each field was binarized at its median value, yielding approximately 50% candidate pixels. Four independent point sets were then obtained from each binary region by sampling exactly 0.5% of its candidate pixels uniformly without replacement, using different sampling seeds. This resulted in approximately 2500 points per point set. Coordinates were stored in pixel coordinates.
This design provides controlled single and multiscale spatial structures while allowing direct comparison between independent point samples drawn from the same underlying region and samples generated from different regions.

Figure 2: Illustration of the synthetic point-cloud generation process using Perlin noise. Columns show three representative values of the Perlin spatial-frequency parameter, and 16, respectively. Increasing produces progressively finer spatial structure. First row: continuous Perlin fields; second row: their binary masks obtained by median thresholding; third row: resulting point clouds sampled from the black pixels with fixed point density.
Experiments design. An initial baseline experiment was conducted to verify that the proposed similarity measure does not yield spuriously high similarity scores for uncorrelated, random point clouds. The metric's performance was subsequently evaluated against the HD95, AHD and Sliced Wasserstein distances.
Second, for each set in the collection of generated point sets , , we performed the following operations to produce a new point set . Then, we computed MCI for each pair , where accounts for each of the following operations:
-
Perturbation: Points are generated by applying a perturbation on the coordinates. That is, fixing , for each point , choose a random unit vector in the plane and move by distance in that direction: . We implemented this operation for .
-
Points removal: Removal of a proportion (10%, 20%, 40% or 60%) of the initial amount of points is performed randomly.
-
Perturbation and removal: Points are obtained by combining both perturbation and removal as explained before.
-
Translation: Points are generated by applying a translation along the horizontal axis by pixels with .
ZAVA ET AL.
-
Rotation: Points are generated by applying a rotation with respect to the central point of the domain with a fixed angle from the set .
-
Impulsive noise addition: additional points (25, 50, 75, and 100) were added to each of the 48 base Perlin clouds, sampled from the white regions of the binary masks, while all original points were retained.
Regarding the minimum and maximum radius, and , for MCI computations, they were calculated based on the local sampling scales of the point clouds using their second-nearest-neighbor (2NN) distance distributions. The lower and upper radii were selected as the maxima, across clouds involved in each experiment, of the 5th and 95th percentiles, respectively. This provides a common interval accommodating differences in sampling density while reducing the influence of extreme local spacings. The use of 2NN distances is motivated by three-point neighborhoods, the smallest configurations that can produce nontrivial closings. These distances serve as practical scale estimates rather than exact thresholds for morphological transitions.
Results. Starting with our baseline experiment, we can visualize the cross-comparison of our 48 Perlin point clouds via heatmaps in Fig. 3, which suggests that our measure provides a more robust similarity assessment than the alternative methods. In particular, MCI provides a consistent score interpretation across the tested spatial configurations: independent samplings of the same regions receive intermediate dissimilarities, whereas samplings of different regions receive uniformly high dissimilarities. The alternative measures exhibit greater variation among different-region comparisons, making a common interpretation of poor alignment less straightforward.

Figure 3: Pairwise dissimilarities among 48 Perlin clouds: MCI, HD95, AHD and sliced Wasserstein. Each diagonal block contains four independent samplings of one region.
Across the transformation experiments, MCI generally increases with severity while retaining clear sensitivity to structural scale: comparable alterations produce larger dissimilarities in finer structures. Under translation, sliced Wasserstein assigns identical scores to all configurations, whereas MCI distinguishes them throughout. At , HD95 and sliced Wasserstein assign larger scores to S4 than S16. The combined experiment (Fig. 4) reinforces MCI's coarse-fine differentiation, particularly at mild perturbations, where HD95 and AHD provide little configuration separation. Sliced Wasserstein shows greater variation between realizations under removal and occasionally decreases as removal increases.
In the case of impulsive noise (see Fig. 5), added points that alter the reconstructed regions increase the MCI (though in very low quantities), whereas isolated points that leave the main structure largely unchanged have little impact and can more reasonably be regarded as noise. AHD shows the opposite tendency: it penalizes distant, isolated points more strongly, even when their structural effect is limited. MCI's response is therefore more appropriate when the aim is to assess preservation of the underlying structure.
Implementation details and code and data availability. An implementation of MCI, as well as the full set of experiments and the needed files to test them, are provided in a Github repository. The dissimilarity measure MCI has been implemented using Python with the library Shapely [10], which allows for morphological dilation and erosion operations. Since Shapely works with polygonal approximations of the closings, the areas of their unions and intersections, and hence the values of MCI, are approximations of the exact ones. The code allows for batch experimentation of a pair of point sets: either generated randomly, passed as an argument, or given by a CSV file.
The solution also includes an interface made with Gradio [1], which allows easy data visualization and comparison of the measurements used in the experiments.
https://github.com/afalvarez95/point-sets-structural-similarity.
ZAVA ET AL.

Figure 4: Perturbation response at 0%, 20% and 60% removal. Colours identify cloud classes; lines show means and bands show observed ranges across eight clouds per class (two regions, four samplings each). Full removal levels are provided in the repository.

Figure 5: Response to impulsive noise: 25, 50, 75, or 100 points were added to the complementary white regions of each of the 48 Perlin clouds. Left: dissimilarity measures grouped by cloud class (HD95 is not displayed since got vale 0 in all the cases). Right: coarse (S4) and fine (S16) examples at closing radius r = 24; blue crosses mark added points and pink regions show newly reconstructed area.
ZAVA ET AL.
For the synthesis of the ground database we used the Python perlin-noise implementation of Perlin noise. We computed sliced Wasserstein distance using the Python Optimal Transport (POT) library [7, 8], with and uniformly sampled projection directions with 20 random fixed seeds and then averaged.
5 Conclusions
We introduced the Multiscale Closing Index (MCI), a dissimilarity between 2D point sets obtained by averaging, over a range of radii, the Jaccard distance between the morphological closings of the two sets. Its bounded range [0, 1] facilitates interpretation. It is symmetric, satisfies the triangle inequality, and converges to the Jaccard distance between the convex hulls as the maximal radius grows. In the experiments, compared with HD95, AHD and sliced Wasserstein, it separated samplings of the same underlying structure from samplings of different structures and more consistently reflected the impact of alterations relative to structural scale, generally increasing with severity while remaining tolerant of isolated noise. Adjustable minimum and maximum radii allow adaptation to different sampling densities and application-specific scales. On the other hand, this flexibility adds a parameter choice to the analysis pipeline. Another limitation is that it is not definite (distinct point sets may have zero index when restricted to a range of radii) for all radii ranges.
Acknowledgments.
This research was partially funded by the French National Research Agency (ANR) under the France 2030 program, grant PR[AI]RIE-PSAI (ANR-23-IACL-0008). M.J.J. is supported by grant PID2024-155867NB-I00 funded by MICIU/AEI/10.13039/501100011033 and ERDF/EU and by the IMUS-María de Maeztu grant CEX2024-001517-M (Apoyo a Unidades de Excelencia María de Maeztu), funded by MICIU/AEI/10.13039/501100011033.
AI disclosure.
In this work, we have used generative AI tools for improving the writing and readability, searching and completing the literature review and helping to summarize and fit to the 12 pages limit. The original idea of the method introduced in the paper has been developed completely on our own. Regarding implementation, though We have not used AI tools for generating the data, nor coding the main pipeline and experiments, Claude (Opus 5.5 medium effort) has been used for experiments replication testing, code debugging, readme generation and proofreading and requirements.txt compatible versioning. We have reviewed all AI-assisted work. We take responsibility for the final content of this work, including text, claims or artifacts produced with the aid of generative AI.
References
[1] Abid, A., Abdalla, A., et al.: Gradio: Hassle-free sharing and testing of ML models in the wild (2019)
[2] Aydin, O.U., Taha, A.A., et al.: On the usage of average hausdorff distance for segmentation performance assessment: Hidden error when used for ranking. European Radiology Experimental 5(1), 4 (2021). https://doi.org/10.1186/s41747-020-00200-2
[3] Bonneel, N., Rabin, J., et al.: Sliced and radon wasserstein barycenters of measures. Journal of Mathematical Imaging and Vision 51(1), 22–45 (2015)
[4] Bull, J.A., Mulholland, E.J., et al.: Integrating diverse statistical methods to analyse stage-discriminatory cell interactions in colorectal neoplasia (2024)
[5] Dubuisson, M.P., Jain, A.K.: A modified hausdorff distance for object matching. In: Proceedings of 12th ICPR. pp. 566–568 (1994). https://doi.org/10.1109/ICPR.1994.576361
[6] Eiter, T., Mannila, H.: Distance measures for point sets and their computation. Acta Informatica 34(2), 109–133 (1997). https://doi.org/10.1007/s002360050075
[7] Flamary, R., Courty, N., et al.: Pot: Python optimal transport. Journal of Machine Learning Research 22(78), 1–8 (2021), http://jmlr.org/papers/v22/20-451.html
[8] Flamary, R., Vincent-Cuaz, C., et al.: POT Python Optimal Transport (7 2026). https://doi.org/10.5281/zenodo.17161062, https://github.com/PythonOT/POT
[9] Gharia, A., Papageorgiou, E.P., et al.: Signal to noise ratio as a cross-platform metric for intraoperative fluorescence imaging. Molecular Imaging 19, 1536012120913693 (2020)
[10] Gillies, S., van der Wel, C., et al.: Shapely (Dec 2022). https://doi.org/10.5281/zenodo.7428463
ZAVA ET AL.
[11] Huttenlocher, D.P., Klanderman, G.A., et al.: Comparing images using the hausdorff distance. IEEE Transactions on Pattern Analysis and Machine Intelligence 15(9), 850–863 (1993)
[12] Lawson, B.A., Drovandi, C., et al.: Perlin noise generation of physiologically realistic cardiac fibrosis. Medical Image Analysis 98, 103240 (2024)
[13] Li, J.T., Liang, Z., et al.: Synora: vector-based boundary detection for spatial omics. bioRxiv (2026). https://doi.org/10.64898/2026.02.26.708395
[14] Maiseli, B., Gu, Y., et al.: Recent developments and trends in point set registration methods. Journal of Visual Communication and Image Representation 46, 95–106 (2017)
[15] Marczewski, E., Steinhaus, H.: On a certain distance of sets and the corresponding distance of functions. Colloquium Mathematicum 6(1), 319–327 (1958)
[16] Matheron, G.: Random Sets and Integral Geometry. John Wiley & Sons, New York (1975)
[17] Najafiaghdam, H., Rabbani, R., et al.: 3d reconstruction of cellular images from microfabricated imagers using fully-adaptive deep neural networks. Scientific Reports 12(1), 7229 (2022)
[18] Najman, L., Talbot, H.: Mathematical morphology: from theory to applications. John Wiley & Sons (2013)
[19] Pei, H., Zhou, W., et al.: A review of point set registration: from fundamental algorithms to geometric quality inspection of aviation complex parts. Journal of Advanced Manufacturing Science and Technology 3(4), 2023012 (2023)
[20] Perlin, K.: An image synthesizer. ACM Siggraph Computer Graphics 19(3), 287–296 (1985)
[21] Perlin, K.: Improving noise. In: Proceedings of the 29th annual conference on Computer graphics and interactive techniques. pp. 681–682 (2002)
[22] Peyré, G., Cuturi, M.: Computational optimal transport: With applications to data sciences. Foundations and Trends® in Machine Learning 11(5–6), 355–607 (2019)
[23] Rodríguez-Casal, A., Saavedra-Nieves, P.: A fully data-driven method for estimating the shape of a point cloud. ESAIM: PS 20, 332–348 (2016)
[24] Santambrogio, F.: Optimal Transport for Applied Mathematicians, Progress in Nonlinear Differential Equations and Their Applications, vol. 87. Birkhäuser, Cham (2015)
[25] Serra, J.: Image Analysis and Mathematical Morphology. Academic Press, London (1982)
[26] Soille, P.: Morphological Image Analysis: Principles and Applications. Springer, Berlin Heidelberg, 2 edn. (2010)
[27] Steinitz, E.: Bedingt konvergente reihen und konvexe systeme. Journal für die reine und angewandte Mathematik 143, 128–176 (1913)
[28] Taha, A.A., Hanbury, A.: Metrics for evaluating 3d medical image segmentation: analysis, selection, and tool. BMC medical imaging 15(1), 29 (2015)
[29] Villani, C.: Topics in Optimal Transportation, Graduate Studies in Mathematics, vol. 58. American Mathematical Society, Providence, RI (2003)
[30] Zhu, H., Guo, B., et al.: A review of point set registration: From pairwise registration to groupwise registration. Sensors 19(5), 1191 (2019). https://doi.org/10.3390/s19051191