Abstract
Detection of elongated structures in 2D images and 3D image stacks is a critical prerequisite in many applications and Machine Learning-based approaches have recently been shown to deliver superior performance. However, these methods essentially classify individual locations and do not explicitly model the strong relationship that exists between neighboring ones. As a result, isolated erroneous responses, discontinuities, and topological errors are present in the resulting score maps. We solve this problem by projecting patches of the score map to their nearest neighbors in a set of ground truth training patches. Our algorithm induces global spatial consistency on the classifier score map and returns results that are provably geometrically consistent. We apply our algorithm to challenging datasets in four different domains and show that it compares favorably to state-of-the-art methods.
Introduction
Extracting elongated structures—such as roads in aerial imagery, blood vessels in retinal scans, or membranes in 3D electron microscopy—is a fundamental challenge in computer vision. While modern machine learning models excel at pixel-wise identification, they often lack a global understanding of geometry. This leads to common artifacts: discontinuities where structures should be continuous, blurred or disconnected junctions, and spurious noise in the background.
The core issue is that standard classifiers treat pixels almost independently, failing to capture the strong spatial dependencies inherent in elongated structures. This paper addresses these shortcomings by introducing a post-processing technique that projects noisy classifier outputs onto a "manifold" of valid, geometrically consistent structures.
Methodology
The proposed approach utilizes a two-stage pipeline to ensure both local accuracy and global consistency.
Initial Regression
First, a regressor (such as GradientBoost) is trained to predict a distance transform rather than a simple binary classification. This regressor produces a "score map," where each pixel's value represents its proximity to the centerline of a structure. While smoother than binary maps, this initial output still contains noise and topological errors.
Manifold Projection
The central innovation is the projection step. The score map is divided into small patches. For each patch, a nearest-neighbor search is performed against a large dictionary of "perfect" ground truth patches from the training set. The noisy patch is then replaced by its nearest neighbor from the dictionary. By overlapping and averaging these clean patches, the method reconstructs a final map that is forced to reside on the manifold of valid structures.
To maintain context across scales, the authors employ a multi-scale approach, concatenating local patch details with downsampled versions to capture broader structural context.
Experimental Results
The proposed method was evaluated across four diverse domains to demonstrate its versatility and robustness: aerial road detection, retinal vessel segmentation (DRIVE dataset), 3D brain tissue scans (EM stacks), and general boundary detection (BSDS).
Aerial Road Extraction
On the Aerial Road dataset, the projection method achieved an F-measure of 0.95, significantly outperforming baseline structured edge detectors. The improvement was most pronounced at complex junctions, where the F-measure rose to 0.94 compared to the baseline's 0.89. As shown in the comparison below, the projection step successfully bridges gaps and restores connectivity in areas where the initial regressor fails.
Vessel and Membrane Segmentation
In retinal vessel segmentation using the DRIVE dataset, the method matched top-tier performance with an F-measure of 0.81. It demonstrated superior robustness in recovering thin vessels and complex branching patterns. For 3D EM scans, the manifold projection effectively filtered out spurious background noise that typically plagues automated segmentation, resulting in cleaner and more topologically accurate membrane reconstructions.
Conclusion
By treating valid structural shapes as a low-dimensional manifold, this research provides a robust framework for "cleaning" noisy classifier outputs. The method ensures that extracted structures are not only locally accurate but also geometrically and topologically consistent with real-world examples. While the nearest-neighbor search adds computational overhead, the gains in structural integrity—especially at critical junctions—mark a significant advancement over purely pixel-wise classification methods. Future work may involve integrating this manifold projection directly into deep learning architectures or using generative models to refine the patch dictionary.
Summary updated