Oriented edge forests for boundary detection

Sam Hallman, Charless C. Fowlkes

Abstract

We present a simple, efficient model for learning boundary detection based on a random forest classifier. Our approach combines (1) efficient clustering of training examples based on a simple partitioning of the space of local edge orientations and (2) scale-dependent calibration of individual tree output probabilities prior to multiscale combination. The resulting model outperforms published results on the challenging BSDS500 boundary detection benchmark. Further, on large datasets our model requires substantially less memory for training and speeds up training time by a factor of 10 over the structured forest model.

Introduction

Boundary detection—identifying the contours that separate objects and regions—is a foundational task in computer vision. While early methods relied on simple brightness gradients (like the Canny detector), modern approaches use machine learning to capture complex textures and patterns.

Recently, "structured output" forests became popular because they can predict entire patches of edge connectivity at once. However, these models are often "black boxes": they are computationally expensive to train, require massive amounts of memory, and are difficult to tune because their internal logic is opaque. This paper argues for a "step back" toward a simpler, more interpretable model that approximates local boundaries as straight lines, proving that simplicity doesn't have to come at the cost of performance.

The Oriented Edge Forest (OEF)

The core of the proposed method is the Oriented Edge Forest (OEF). Instead of predicting a complex 16x16 binary mask for every patch, the model treats boundary detection as a discrete classification problem, categorizing each patch into one of a fixed number of "edge classes."

Edge Parameterization and Labeling

A non-background patch is defined by two parameters: the distance ($d$) from the patch center to the nearest edge and the orientation ($\theta$) of that edge. This creates a 2D parameter space that has the topology of a Möbius strip, as an edge at ($d, \theta$) is identical to one at ($-d, \theta + \pi$).

The authors bin this ($d, \theta$) space into 120 discrete classes (15 distance bins and 8 orientation bins) plus one "background" class. A standard random forest is then trained to perform this 121-way classification using color and gradient features.

Mapping image patches to a discrete space of oriented edge templates.

Calibration and Sharpening

Forest outputs are often uncalibrated. To ensure scores are consistent across different image scales, the authors apply a simple exponential transformation. Furthermore, to handle the fact that real edges aren't always perfectly straight, they use a "sharpening" step that re-aligns the predicted edge based on local pixel colors. Finally, predictions from overlapping patches and multiple image scales are fused to produce the final boundary map.

Key Insights

  • Straight-Line Sufficiency: For small 16x16 patches, a straight-line approximation is sufficient for the vast majority of cases; less than 8% of patches contain more than two segments.
  • Efficiency through Simplification: By turning a structured prediction problem into a standard multiclass classification problem, OEF bypasses the need for expensive per-node Principal Component Analysis (PCA) used in previous models.
  • Multiscale Fusion: Combining results from different image scales is vital for robustness. Well-calibrated probabilities and sharpening significantly boost average precision.
Boundary detection results across different scales and sharpening levels.

Results

The model was evaluated on the BSDS500 (Berkeley Segmentation Dataset and Benchmark), the gold standard for boundary detection.

  • Accuracy: OEF achieved an ODS (Optimal Dataset Scale) F-measure of 0.75 on BSDS500, outperforming the then-current state-of-the-art. When combined with Multiscale Combinatorial Grouping (MCG), it reached 0.76.
  • Training Speed: The training process is roughly 40x faster than Structured Forests. A single tree takes about 5 minutes to train, compared to over 3 hours for previous methods.
  • Memory Efficiency: OEF requires only 19 GB of RAM during training, whereas the leading competitor required 54 GB, making OEF much more accessible for standard hardware.

Conclusion

Oriented Edge Forests simplify boundary detection by treating it as a discrete classification problem. By parameterizing edges by orientation and distance, the model achieves state-of-the-art accuracy while being significantly faster and more memory-efficient than complex structured output models. While the model does not explicitly represent junctions within a single patch, its efficiency and performance make it a powerful tool for large-scale computer vision tasks.

Summary updated

BibTeX
@inproceedings{hallman2015oriented,
  author = {Sam Hallman and Charless C. Fowlkes},
  title = {{Oriented edge forests for boundary detection}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2015},
  url = {https://openreview.net/forum?id=B1Z0qh-uWH},
}

Loading related content...

Figure