Introduction
Image filtering is a fundamental task in computer vision, essential for applications ranging from denoising to high-level object recognition. A persistent challenge in this field is "semantic smoothing": the ability to suppress distracting textures (like grass or fabric patterns) while preserving the sharp boundaries of meaningful objects. Traditional filters, such as the Bilateral or Guided Filter, often fail because they rely on low-level color gradients that cannot distinguish between a texture edge and an object boundary.
This paper introduces Semantic Filtering, a method that integrates high-level semantic information into the filtering process. By combining the efficiency of recursive filters with the intelligence of modern edge detectors, the authors achieve state-of-the-art results in structure-preserving smoothing.
The Semantic Filtering Framework
The core innovation lies in modifying the Domain Transform Filter (DTF), a fast recursive smoothing technique. In a standard DTF, the "distance" between pixels—which determines the degree of smoothing—is calculated based on spatial distance and local color gradients.
Semantic Filtering augments this distance function using a Structured Learning Edge Classifier. Specifically, the authors use "Structured Forests" to generate an edge confidence score ($f_j$) for every pixel. This score acts as a weight:
- High Confidence: If the classifier identifies a likely object boundary, the distance increases, preventing the filter from smoothing across the edge.
- Low Confidence: If the classifier suggests a region is merely texture, the distance effectively shrinks, allowing the filter to smooth over high-gradient textures.
To handle textures that occur right at object boundaries, the authors use a median-filtered version of the image to compute the gradients for the distance function, preventing "leaking" artifacts. The process is iterative; by halving the filter's scale parameters with each pass, the result quickly converges to a stable, clean image in just 2-3 iterations.
Performance and Results
The proposed method excels in both speed and quality. Processing a 1-megapixel image takes approximately 0.14 seconds on a standard CPU, making it viable for real-time applications. This performance significantly outpaces other structure-preserving filters like $L_0$ Smoothing or Relative Total Variation.
Qualitatively, the filter demonstrates a unique ability to handle multi-scale objects. As seen in the savanna and field examples, it can simultaneously suppress the fine texture of animal skin and grass while maintaining the crisp silhouettes of the animals themselves.
Quantitatively, the filter provides a significant boost to downstream tasks. When used as a pre-processing step for saliency detection on the ECSSD dataset, Semantic Filtering reduced the Mean Absolute Error (MAE) from 0.1707 to 0.1578, outperforming other established filters.
Conclusion and Future Work
Semantic Filtering successfully bridges the gap between low-level image processing and high-level computer vision. By leveraging human-labeled priors through an edge classifier, it overcomes the limitations of manual parameter tuning and low-level gradient rules. While currently optimized for recursive filters, future work may involve adapting this semantic weighting to other frameworks, such as the Guided Filter, to further expand its utility in the computer vision pipeline.
Summary updated