Elliptical Distance Transforms and Applications

Hugues Talbot

Abstract

Distance transforms are fundamental in computer vision for tasks like skeletonization and segmentation. However, standard Euclidean Distance Transforms (EDT) assume circular growth, which leads to poor results for elongated shapes such as cell nuclei or fibers. This paper introduces an efficient approximation algorithm for the Elliptical Distance Transform (LDT). By redefining pixel neighborhoods and implementing sub-pixel corrections, the proposed method enables robust segmentation of overlapping elliptical objects where traditional EDT-based watershed methods typically fail.

Introduction: Beyond Circular Assumptions

The standard Euclidean Distance Transform (EDT) calculates the distance from every pixel to the nearest object boundary. Visualizing this process reveals expanding circular "growth" patterns. While effective for roughly spherical objects, EDT often fails in biological and material science applications where objects are elongated. When these elliptical shapes touch or overlap, EDT-based watershed segmentation frequently results in under-segmentation (merging distinct objects) or over-segmentation (splitting single objects).

Figure 1: Segmentation pipeline using LDT. (a) Original binary image of overlapping ellipses. (b) Grayscale LDT result. (c) Markers for watershed. (d) Final segmentation result.

The Elliptical Distance Transform (LDT) addresses this by incorporating eccentricity ($\sigma$) and orientation ($\alpha$) into the distance equation. This paper presents a computationally efficient LDT algorithm that maintains high accuracy even for shapes with high eccentricity.

Methodology: Refining the Elliptical Metric

The author develops an "ordered propagation" approach, similar to Dijkstra’s algorithm, but tailored for elliptical geometry. Three primary innovations ensure accuracy:

  1. Extended Neighborhoods: Standard 8-connectivity is insufficient for thin ellipses. The algorithm expands the search window relative to the eccentricity $\sigma$ to ensure the true nearest boundary point is identified.
  2. Sub-pixel Grid Correction: To prevent grid-induced errors at high eccentricities, the distance metric is redefined to account for the sub-pixel position of boundary points, effectively smoothing the discrete grid.
  3. Integer Arithmetic: By calculating the square of the LDT, the algorithm utilizes fast integer math for internal bookkeeping, enhancing performance without sacrificing precision.
Figure 6: Level lines of the proposed LDT approximating a parametric ellipse.

The LDT can be viewed as a specialized distance transform on a Riemannian manifold. While general solvers exist, this specialized approach offers superior speed and accuracy for elliptical geometries.

Experimental Evaluation and Results

The algorithm was tested on synthetic benchmarks and a real-world biological dataset containing 104 overlapping cell nuclei.

Accuracy

The proposed LDT reduces average error to approximately 0.6 pixels. As shown in the level line analysis in Figure 6, the resulting contours are virtually indistinguishable from mathematically perfect parametric ellipses.

Segmentation Performance

In the cell nuclei dataset, the LDT-based watershed significantly outperformed standard methods:

  • Manual Ground Truth: 104 cells
  • Proposed LDT Watershed: 100 cells (6 errors)
  • Standard EDT Watershed: 93 cells (15 errors)
  • Filtered EDT Watershed: 86 cells (18 errors)

While the extended neighborhood search makes the algorithm roughly twice as slow as less accurate predecessors, it remains highly practical, processing a 1.3-megapixel image in approximately one minute on contemporary hardware.

Conclusion and Future Work

The quality of a distance transform is a primary determinant of success for subsequent morphological operations. By providing a robust LDT, this work enables more accurate analysis of complex, elongated structures. Future research may focus on optimizing the parameter search for $\alpha$ and $\sigma$ and exploring "exact" linear-time versions of the LDT, which remains a challenge in discrete geometry.

Summary updated

BibTeX
@inproceedings{talbot2006elliptical,
  author = {Hugues Talbot},
  title = {{Elliptical Distance Transforms and Applications}},
  booktitle = {Dgci},
  year = {2006},
  doi = {10.1007/11907350\_27},
}
Figure