Detection of curved lines with B-COSFIRE filters: A case study on crack delineation

Nicola Strisciuglio, George Azzopardi, Nicolai Petkov

Introduction

Detecting curvilinear structures, such as blood vessels in medical imaging or cracks in infrastructure, remains a significant challenge in computer vision. These structures are frequently thin, fragmented, or obscured by heavy noise. Traditional methods often rely on rigid mathematical models or require extensive labeled datasets for deep learning. This paper introduces the B-COSFIRE (Bar-Combination of Shifted Filter Responses) filter, a trainable, brain-inspired approach that learns from a single prototype and offers robust performance in complex environments.

Methodology: The B-COSFIRE Pipeline

The B-COSFIRE filter is inspired by the "simple cells" found in the V1 area of the human visual cortex. Unlike standard filters with fixed weights, B-COSFIRE is configured automatically using a prototype pattern, such as a single line segment. It identifies specific arrangements of Difference-of-Gaussians (DoG) responses.

The four-step detection pipeline: B-COSFIRE filtering, thinning, hysteresis thresholding, and morphological closing.

The detection process follows a structured four-step pipeline:

  1. B-COSFIRE Filtering: The filter is configured to detect a specific structure by looking for a spatial arrangement of DoG responses.
  2. Filter-Blur-Shift-Combine: To accommodate slight deformations and "tortuosity" (wiggly lines), DoG responses are blurred and then shifted toward a central point. A geometric mean is used to combine these responses, acting as a strict "AND" gate that suppresses noise by requiring all parts of the expected structure to be present.
  3. Thinning and Thresholding: Non-maximum suppression (thinning) and hysteresis thresholding are applied to refine the fuzzy filter output into a clean map, helping to connect weak segments to stronger ones.
  4. Morphological Closing: A final morphological step fills any remaining small gaps in the detected lines.

Experimental Evaluation

The method was evaluated on the Crack_PV14 dataset, which consists of 14 laser range images of pavement cracks. These images are particularly difficult due to the faint nature of the cracks and the high-texture noise of the asphalt.

Visual results of the crack detection process: (a) input image, (b) ground truth skeleton, (c) B-COSFIRE filter response, and (d) final detected skeleton.

The B-COSFIRE approach achieved an average F-measure of 0.865, outperforming specialized algorithms like CrackTree and FoSA. Qualitative analysis demonstrated that the filter effectively ignores heavy Gaussian noise and successfully identifies complex, tortuous lines that typically confuse standard edge detectors.

Key Insights

  • Data Efficiency: Unlike deep learning, which requires thousands of examples, B-COSFIRE is configured using just one prototype pattern, representing a highly data-efficient form of representation learning.
  • Robustness to Imperfections: Through the "blurring" step, the filter allows for slight gaps and irregularities without losing the signal, mimicking the human ability to perceive a dashed line as a single continuous structure.

Conclusion and Future Work

The B-COSFIRE filter provides a powerful alternative to existing curvilinear detectors. While the current Matlab implementation is efficient—processing a 200x300 image in approximately 0.35 seconds—future work will focus on GPU acceleration for real-time applications like automated road inspection. Additionally, researchers aim to automate parameter selection to broaden the filter's applicability across different domains, from medical imaging to satellite data analysis.

Summary updated

BibTeX
@inproceedings{strisciuglio2017detection,
  author = {Nicola Strisciuglio and George Azzopardi and Nicolai Petkov},
  title = {{Detection of curved lines with B-COSFIRE filters: A case study on crack delineation}},
  booktitle = {CAIP},
  year = {2017},
  doi = {10.1007/978-3-319-64689-3\_9},
}
Figure