Abstract
Image smoothing is a fundamental task in computer vision, that attempts to retain salient structures and remove insignificant textures. In this paper, we aim to address the fundamental shortcomings of existing image smoothing methods, which cannot properly distinguish textures and structures with similar low-level appearance. While deep learning approaches have started to explore structure preservation through image smoothing, existing work does not yet properly address textures. To this end, we generate a large dataset by blending natural textures with clean structure-only images, and use this to build a texture prediction network (TPN) that predicts the location and magnitude of textures. We then combine the TPN with a semantic structure prediction network (SPN) so that the final texture and structure aware filtering network (TSAFN) is able to identify the textures to remove (“texture-awareness”) and the structures to preserve (“structure-awareness”). The proposed model is easy to understand and implement, and shows good performance on real images in the wild as well as our generated dataset.
Introduction
Image smoothing is a critical balancing act: the goal is to remove distracting textures—such as the weave of a fabric or the scales on a fish—while preserving important "salient" structures like object outlines. Traditional filters and many recent deep learning models rely heavily on gradient information, assuming that structures exhibit large color changes (high gradients) while textures exhibit small ones.
However, real-world images often defy this assumption. High-contrast textures, such as a giraffe’s spots or a zebra’s stripes, produce massive gradients, while faint object boundaries in the distance may have very low gradients. Standard filters frequently fail in these scenarios, either leaving strong textures untouched or blurring weak structures.
Methods
The authors propose the Texture and Structure Aware Filtering Network (TSAFN), a tripartite deep learning architecture designed to overcome these limitations.
The architecture consists of three main components:
- Texture Prediction Network (TPN): This branch identifies the location and magnitude of textures using a multi-scale approach (processing the image at 1/2, 1/4, and 1/8 scales). This allows the model to capture repetitive patterns that local pixel-level filters might miss.
- Structure Prediction Network (SPN): This branch leverages a pre-existing semantic edge detection model (HED) to identify meaningful object boundaries, ensuring the filter preserves essential structural information.
- Filtering Network: The final stage integrates the original image with the guidance maps from the TPN and SPN. It employs a series of convolutional layers with varying kernel sizes (from 7x7 down to 3x3) to produce the smoothed output.
The entire system is trained end-to-end, synchronizing the three networks' understanding of detail versus distraction.
Datasets and Training
A significant challenge in this research was the lack of large-scale datasets with ground-truth texture labels. To address this, the authors developed a creative synthetic data generation pipeline:
- Synthetic Texture Dataset: Natural texture patterns from the DTD and Describable Textures datasets were blended onto "structure-only" cartoon images.
- Augmentation: Random spatial distortions (scaling, shearing, rotation) and color variations were applied to mimic real-world 3D surface appearances.
- Scale: A total of 30,000 images were generated, providing a robust training ground for the TPN to learn local texture statistics.
Using cartoon images as a proxy for "pure structure" provides a clear mathematical objective: remove the added texture and recover the original cartoon state.
Key Results
TSAFN outperformed 11 traditional filters and 5 state-of-the-art deep learning models in both quantitative and qualitative evaluations.
- Quantitative Performance: On the synthetic dataset, TSAFN achieved a PSNR of 25.07, significantly higher than the next best deep model (CEILNet at 22.65) and traditional filters (DGF at 17.89).
- Efficiency: The model processes images in approximately 0.16 seconds, making it over 50 times faster than the high-performing but computationally expensive Double-Guided Filter (DGF).
- Qualitative Quality: Visual results on "in the wild" images demonstrate that TSAFN successfully removes high-contrast spots and dots while keeping object boundaries sharp—a task where previous methods consistently struggled.
Conclusion
The TSAFN model demonstrates that explicitly separating texture-awareness and structure-awareness into distinct neural signals effectively resolves the ambiguity inherent in single-guidance filters. While the model currently relies on multi-scale statistics, future work could incorporate higher-level object semantics to further refine filtering priors (e.g., using object recognition to inform texture removal).
Summary updated