Abstract
Delineation of line patterns in images is a basic step required in various applications such as blood vessel detection in medical images, segmentation of rivers or roads in aerial images, detection of cracks in walls or pavements, etc. In this paper we present trainable B-COSFIRE filters, which are a model of some neurons in area V1 of the primary visual cortex, and apply it to the delineation of line patterns in different kinds of images. B-COSFIRE filters are trainable as their selectivity is determined in an automatic configuration process given a prototype pattern of interest. They are configurable to detect any preferred line structure (e.g. segments, corners, cross-overs, etc.), so usable for automatic data representation learning. We carried out experiments on two data sets, namely a line-network data set from INRIA and a data set of retinal fundus images named IOSTAR. The results that we achieved confirm the robustness of the proposed approach and its effectiveness in the delineation of line structures in different kinds of images.
Introduction
The detection and delineation of elongated structures—such as cracks in infrastructure, river networks in satellite imagery, or capillaries in medical scans—is a cornerstone of computer vision. Despite its importance, the task remains challenging due to significant variations in line thickness, orientation, and contrast across different domains.
Traditional approaches typically fall into two categories: hand-crafted filters (like Gabor or Hessian kernels) which require tedious manual tuning, or deep learning models which demand massive labeled datasets and high computational resources. This paper introduces B-COSFIRE filters, a bio-inspired, trainable alternative that offers a middle ground: the efficiency of a filter with the adaptability of representation learning.
Methodology: The B-COSFIRE Filter
The B-COSFIRE (Bar-Combination of Shifted Filter Responses) filter is inspired by "simple cells" in the primary visual cortex (area V1), which respond to bars of specific orientations.
Automatic Configuration
Unlike static filters, B-COSFIRE is trainable. It determines its selectivity through an automatic configuration process using a single prototype pattern (e.g., a synthetic bar). The system identifies the specific arrangement of Difference-of-Gaussians (DoG) sub-units—which detect local contrast—needed to represent that pattern.
The "AND" Logic
A defining feature of the B-COSFIRE filter is its use of the weighted geometric mean to combine responses from its sub-units. This function acts as a fuzzy logical "AND" operation: the filter only produces a strong output if all expected components of the line structure are present. This mechanism is highly effective at suppressing noise, as a zero response in any single sub-unit results in a zero total response.
Experimental Evaluation
The versatility of the B-COSFIRE approach was tested on two distinct datasets:
- INRIA Line-Network Dataset: A diverse set featuring leaf veins, tiled walls, aerial river views, and road networks.
- IOSTAR Dataset: 30 high-resolution retinal fundus images for blood vessel segmentation.
Key Results and Discussion
The B-COSFIRE filters demonstrated state-of-the-art performance and remarkable efficiency across all test cases.
Quantitative Performance
On the INRIA dataset, the method achieved the highest Matthews Correlation Coefficient (MCC) for both the leaf (0.7680) and tiles (0.8410) categories. In medical imaging, it reached an accuracy of 0.9458 on the IOSTAR dataset, proving competitive with specialized algorithms despite being a general-purpose tool.
Computational Efficiency
One of the most significant advantages of B-COSFIRE is its speed. As shown in the results table, it processed the leaf dataset in just 0.75 seconds, compared to 73.5 seconds for a competing junction-point process. This efficiency makes it suitable for large-scale image processing tasks where deep learning or complex stochastic models might be too slow.
Conclusion
B-COSFIRE filters provide a robust and efficient framework for delineating line patterns. By mimicking biological vision and utilizing a trainable configuration process, they adapt to various image types without manual kernel redesign. Future work will focus on multi-scale approaches to better handle varying line widths and exploring alternative combination functions to improve robustness against occlusions.
Summary updated