Abstract
Distinguishing between fine-scale textures and meaningful semantic structures remains a fundamental challenge in computer vision and image processing. Traditional filters often struggle to remove high-contrast textures without blurring essential edges, or they require computationally expensive optimization frameworks. This paper introduces Pyramid Texture Filtering, a method that leverages the inherent scale-separation properties of image pyramids. By starting from a naturally texture-free coarse scale and iteratively upsampling using a novel Pyramid-guided Structure-aware Upsampling (PSU) module, the method achieves state-of-the-art texture removal and structure preservation. The algorithm is highly efficient, capable of processing 720p images in 5 milliseconds on modern GPUs.
1. Introduction
The separation of "texture" (fine-scale repeating patterns) from "structure" (the primary edges and shapes of an object) is a classic problem. Because both elements often share similar local statistics—such as intensity gradients and contrast—standard local filters frequently fail to differentiate between them. This leads to two common failure modes: leaving texture residuals behind or accidentally smoothing out important structural boundaries.
Existing approaches generally fall into two categories: optimization-based methods that utilize complex, hand-crafted mathematical measures, and deep learning models. Optimization methods are often computationally intensive and difficult to tune, while deep learning models may fail to generalize to textures not present in their training data. Pyramid Texture Filtering proposes a "third way": a computationally efficient, robust, and easy-to-implement framework based on classical image pyramids.
2. Methodology
The core innovation of this work is the Pyramid-guided Structure-aware Upsampling (PSU) module. Rather than attempting to "scrub" texture away from a high-resolution image (a top-down approach), the method builds the filtered image from the bottom up, starting from a scale where texture has already been naturally eliminated.
2.1 Pyramid Construction
The process begins by constructing standard Gaussian and Laplacian pyramids for the input image. The key observation is that at the coarsest level ($G_N$), the image is sufficiently downsampled such that fine-scale textures vanish, leaving only a blurry representation of the primary structures.
2.2 Iterative Upsampling and the PSU Module
The algorithm progressively upsamples this "clean" coarse image back to the original resolution. At each level of the pyramid, the PSU module performs two critical steps using Joint Bilateral Filters (JBF):
- Guided Upsampling: The current filtered result is upsampled using the corresponding finer Gaussian level as a spatial guide. This helps recover the basic locations of edges.
- Detail Injection: The method incorporates the corresponding Laplacian level, which contains the high-frequency details lost between scales. By filtering the sum of the upsampled result and the Laplacian details, the PSU module injects sharp structural edges back into the image without re-introducing the unwanted textures.
This iterative approach is significantly more stable than single-step upsampling because the structural misalignment between two adjacent pyramid levels is minimal, allowing the JBF to perform with high precision.
3. Evaluation and Results
3.1 Datasets and Robustness
As a non-learning-based image processing technique, the method does not require training data. To evaluate performance, the authors tested the filter on a diverse range of challenging images from public repositories (Flickr, Alamy, Pinterest) and established benchmarks. The testing suite included high-contrast line art, jigsaw textures, knitted patterns, and random dot textures to ensure robustness across different visual domains.
3.2 Performance
The method demonstrates qualitative superiority in handling "blocky" or high-contrast textures, such as those found in mosaics or LEGO-based art, which typically defeat standard filters like Weighted Least Squares (WLS) or Relative Total Variation (RTV).
Beyond visual quality, the algorithm is exceptionally fast. An unoptimized Matlab implementation can process a 720p image in approximately 1 second. However, a GPU implementation (NVIDIA RTX 3090Ti) reduces this time to just 5 milliseconds, making the filter suitable for real-time video processing and interactive applications.
4. Applications
The versatility of the Pyramid Texture Filter is demonstrated across several image processing tasks:
- Image Abstraction: Converting photographs into clean, painting-like visuals by removing distracting textures.
- Detail Enhancement: Selectively boosting structural details without amplifying noise or texture.
- HDR Tone Mapping: Managing dynamic range while preserving local contrast.
- Inverse Halftoning: Reconstructing continuous-tone images from halftoned sources.
5. Discussion and Limitations
The primary insight of this work is that scale is the most effective discriminator for texture-structure separation. By moving to a sufficiently coarse scale, the problem simplifies significantly. However, the method is not without limitations. Its success depends on the "traceability" of structures; if a structural element is so small or low-contrast that it disappears entirely at the coarsest Gaussian level, the upsampling process cannot recover it. Furthermore, like many bilateral-based methods, it can occasionally produce "gradient reversal" artifacts if the smoothing parameters are set too aggressively.
Future work involves extending the pyramid-based logic to video sequences, where maintaining temporal consistency between filtered frames remains a significant challenge.
Summary updated