On Detection of Faint Edges in Noisy Images

Nati Ofir, Meirav Galun, Sharon Alpert, Achi Brandt, Boaz Nadler, Ronen Basri · DOI

Abstract

A fundamental question for edge detection in noisy images is how faint can an edge be and still be detected. In this paper we offer a formalism to study this question and subsequently introduce computationally efficient multiscale edge detection algorithms designed to detect faint edges in noisy images. In our formalism we view edge detection as a search in a discrete, though potentially large, set of feasible curves. First, we derive approximate expressions for the detection threshold as a function of curve length and the complexity of the search space. We then present two edge detection algorithms, one for straight edges, and the second for curved ones. Both algorithms efficiently search for edges in a large set of candidates by hierarchically constructing difference filters that match the curves traced by the sought edges. We demonstrate the utility of our algorithms in both simulations and applications involving challenging real images. Finally, based on these principles, we develop an algorithm for fiber detection and enhancement. We exemplify its utility to reveal and enhance nerve axons in light microscopy images.

The Challenge of Faint Edges

Standard edge detection techniques, such as the Canny operator, typically rely on local image gradients. These methods look for sharp changes in brightness between neighboring pixels. However, in high-noise environments—common in fields like cryo-electron microscopy or low-light photography—the noise level often exceeds the edge contrast. This leads to "local contrast reversals," where the "dark" side of an edge may appear brighter than the "light" side within a small patch.

Intensity profiles along two parallel lines in a noisy image demonstrate the difficulty of local edge detection.

Common workarounds like Gaussian smoothing often blur out the very edges they are intended to preserve. This paper addresses a fundamental question: How faint can an edge be and still be detected? The authors argue that to find these edges, one must move away from local gradients and toward "matched filters"—averaging pixel values along long, potential curves to allow noise to cancel itself out while the signal accumulates.

Methodology: Search-as-Detection

The paper introduces a "search-as-detection" paradigm. Instead of calculating a gradient at every pixel, the algorithm searches through a discrete set of feasible curves.

To avoid the computational burden of checking every possible path, the authors utilize two efficient structures:

  • Straight Edges: A recursive construction builds long line integrals from shorter ones with $O(N \log N)$ complexity.
  • Beam-Curves: A binary tree structure tiles the image. Curved edges are formed by "stitching" together optimal sub-curves from adjacent tiles. This has $O(N^{1.5})$ complexity, or $O(N \log N)$ for a greedy version.

Statistical Thresholding and Consistency

The authors derive a detection threshold based on the False Alarm Rate. This threshold is a function of the curve length ($L$) and the size of the search space ($K_L$), accounting for the "multiple hypothesis testing" problem—the more curves checked, the more likely a "fake" edge appears by chance. To ensure the edge is "real" throughout its length, a secondary "Consistent Contrast Test" validates the consistency of the contrast along the curve, preventing a single bright segment from triggering a false positive for a long gap.

Key Insights: The Search Space Penalty

A critical finding is the trade-off between curve length and search complexity. While longer curves provide better noise suppression, if the number of possible curves grows exponentially with length (as with general curved edges), the detection threshold eventually hits a floor ($T_\infty$). An edge fainter than this limit can never be detected, regardless of its length.

Conversely, straight lines are "special." Because the number of possible straight lines grows slowly, the detection threshold for straight edges vanishes as length goes to infinity. Theoretically, an infinitely long straight edge can be detected at near-zero contrast.

Real-World Applications and Results

The methods were evaluated using simulated noisy images and challenging real-world datasets. In simulations with SNR < 1, the proposed "Curves" and "Lines" algorithms significantly outperformed standard detectors. At SNR 1.0–1.6, the "Curves" method achieved an F-measure of 0.73, compared to Canny’s 0.57.

Electron microscopy image of plant cell membranes, a challenging real-world dataset for edge detection.

Beyond simulations, the algorithm proved effective for:

  • Electron Microscopy (EM): Detecting plant cell membranes in highly textured and noisy environments.
  • Light Microscopy: Automating the measurement of total axonal length in fluorescent images of nerve axons, matching manual human estimation with a relative error often below 4%.
  • Natural Images: Identifying low-contrast features like tree rings and retinal blood vessels.

Conclusion and Future Directions

By framing edge detection as a global search problem, this work provides a robust framework for "seeing" through extreme noise. While highly effective, the current theory assumes edges are intensity step functions and does not yet account for boundaries defined by texture or variance changes. Future work may involve incorporating higher-level shape priors to further lower detection thresholds and exploring sub-linear runtimes for processing extremely large datasets.

Summary updated

BibTeX
@article{ofir2017detection,
  author = {Nati Ofir and Meirav Galun and Sharon Alpert and Achi Brandt and Boaz Nadler and Ronen Basri},
  title = {{On Detection of Faint Edges in Noisy Images}},
  journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
  year = {2017},
  doi = {10.1109/tpami.2019.2892134},
}
Figure