TRUCO: A Scalable Lock-Free Algorithm for Parallel Contour Extraction
Rafael Munoz-Salinas, Francisco J. Romero-Ramirez, Manuel J. Marin-Jimenez
Key points
From the paper's conclusion- TRUCO introduces a start-point ownership rule, combined with a speculative tracing model, in which threads trace contours downward into adjacent regions and use an upward-termination logic to ensure each contour is processed exactly once.
Abstract
Transforming binary masks into geometric contours remains a critical step in many computer vision pipelines, particularly for post-processing high-resolution segmentation outputs. Yet, standard algorithms such as the Suzuki-Abe method are limited by their sequential nature and the overhead of building topological hierarchies. As modern applications transition to high-resolution imaging, there is a critical need for contour extraction that leverages multi-core CPU architectures without the complexity of tile stitching or heavy synchronization. This paper presents TRUCO (Threaded Raster Unrestricted Contour Ownership), a lock-free parallel algorithm designed for high-performance geometric boundary extraction. TRUCO introduces a start-point ownership rule, combined with a speculative tracing model, in which threads trace contours downward into adjacent regions and use an upward-termination logic to ensure each contour is processed exactly once. Experimental results on synthetic and real-world datasets, conducted on both consumer and server-grade CPUs, demonstrate that TRUCO significantly outperforms existing baselines. The method achieves speedups of over an order of magnitude compared to the industry standard while maintaining robust scalability on high-resolution scenes across diverse hardware architectures.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Marching Neurons: Accurate Surface Extraction for Neural Implicit ShapesACM Transactions on Graphics · 2025
- Instant-LIVO: Efficient LiDAR-Inertial-Visual Odometry with Compact Geometry and a Bounded Single-Reference-Frame MaparXiv · 2026
- UltraMatch: Transport Path Routing for Ultra-Fast and Memory-Efficient Image MatchingarXiv · 2026
- Inter-Frame Predictive Contour Coding for Semantic Map CompressionarXiv · 2026
- Refined segmentation of high‐resolution bridge crack images via probability map‐guided point rendering techniqueComputer-Aided Civil and Infrastructure Engineering · 2025
- FPGA Accelerator for Multiscale ORB Keypoint Extraction With Adaptive Nonmaximum SuppressionInternational Journal of Reconfigurable Computing · 2026