Interactive GPU active contours for segmenting inhomogeneous objects

Chris G. Willcocks, Philip T. G. Jackson, Carl J. Nelson, Amar Vijai Nasrulloh, Boguslaw ObaraJ. Real Time Image Process 2019 · DOI

Introduction

Image segmentation—the process of partitioning an image into meaningful regions—is a cornerstone of medical and biological research. However, two major hurdles persist: the inherent inhomogeneity of biological structures and the extreme computational cost of robust segmentation models. Many biological objects, such as tumors or complex cell structures, lack uniform intensity, causing standard algorithms to fail. While advanced models like Local Gaussian Distribution Fitting (LGDF) can handle these "messy" images, they are mathematically intensive. Segmenting a large 3D volume can take hours on a CPU, preventing real-time human intervention.

Researchers have addressed this by developing a high-performance GPU-accelerated framework for the LGDF energy model. By combining massive parallelization with interactive "barrier brushes" and real-time 3D ray tracing, they have transformed a once-prohibitive process into a responsive, human-in-the-loop tool.

Methods and Optimization

The core of this framework is an optimized GPU implementation of the LGDF model. Unlike global models that rely on uniform intensity means, LGDF calculates the mean and variance within local neighborhoods. This allows the "active contour" (the evolving boundary) to adapt to local variations in lighting or texture.

To achieve real-time performance, the authors implemented several GPU-specific optimizations:

  • Separable Filtering: N-dimensional Gaussian filters were decomposed into 1D separable passes to reduce computational complexity.
  • Texture Memory Utilization: The system leverages GPU texture memory to maintain spatial locality, which is critical for neighborhood-based calculations.
  • Interactive Brushes: Users can guide the segmentation using "seed" brushes to initiate the process, "erase" brushes for trimming, and a novel "barrier" brush. The barrier brush creates a permanent constraint that the evolving contour cannot cross, allowing for precise manual correction.
  • Real-Time 3D Rendering: A built-in ray tracer visualizes the active surface at every time step, providing immediate visual feedback in 3D.
Figure 1: 3D segmentation results across various datasets: (a) simulated brain MRI, (b) CT scan of teeth and jaw, (c) CT scan of foot bones, and (d) biological cell structures.

Key Results

The framework was validated across a diverse range of datasets, including medical MRI/CT scans, biological SPIM microscopy, and industrial data.

  • Performance: The OpenCL implementation achieved over a 1,000x speedup compared to traditional vectorized CPU versions. A 3D volume ($256 \times 256 \times 160$ voxels) that previously required over 6 hours can now be processed interactively in seconds.
  • Accuracy and Robustness: Validation using the Jaccard index showed near-identical results to CPU implementations (scores $>0.98$), ensuring that speed does not compromise precision. The system also demonstrated high stability against heavy noise (down to a PSNR of ~10 dB).
  • Human-in-the-Loop: The speed of the algorithm enables a "human-in-the-loop" approach, where researchers can correct edge cases on the fly rather than relying on imperfect fully autonomous systems.

Conclusion and Future Work

This GPU-accelerated LGDF framework provides a powerful tool for complex 3D segmentation. While current limitations include GPU memory constraints for extremely high-resolution volumes, future work may involve multi-resolution approaches to refine edges at higher detail without exceeding VRAM. By making robust mathematical models interactive, this research significantly lowers the barrier for high-precision biological and medical image analysis.

Summary updated

BibTeX
@article{willcocks2019interactive,
  author = {Chris G. Willcocks and Philip T. G. Jackson and Carl J. Nelson and Amar Vijai Nasrulloh and Boguslaw Obara},
  title = {{Interactive GPU active contours for segmenting inhomogeneous objects}},
  journal = {J. Real Time Image Process.},
  year = {2019},
  doi = {10.1007/s11554-017-0740-1},
}
Figure