Abstract
Exemplar-based texture synthesis is a vital technique in computer graphics, yet the manual selection of high-quality input patches remains a significant bottleneck. This paper proposes an automated pipeline that extracts optimal texture exemplars from natural images by combining global scene classification with local structural and color consistency analysis. The system achieves real-time performance, processing standard high-resolution images in less than 100 milliseconds.
Introduction
In fields such as virtual reality and game development, texture synthesis allows for the creation of expansive, seamless backgrounds from small image snippets known as exemplars. However, the success of these algorithms is highly sensitive to the quality of the input. A poorly chosen exemplar containing shadows, stray objects, or inconsistent patterns can lead to visible artifacts in the synthesized output. Traditionally, identifying these "perfect" patches has been a manual, time-consuming task for artists. This research addresses the gap by introducing an algorithm capable of automatically identifying and extracting high-quality texture exemplars.
Methodology
The proposed method utilizes a multi-stage pipeline designed to filter candidate patches from an image using a "coarse-to-fine" approach.
1. Candidate Sampling
To maintain computational efficiency, the system avoids exhaustive searching. Instead, it employs Poisson disk sampling to generate a set of candidate patches across the image. This technique ensures uniform coverage while minimizing the number of evaluations required.
2. Global Textureness Evaluation
The first filter determines if a patch represents a texture at a scene level. The system extracts a GIST descriptor—which captures the spatial envelope of the scene—and processes it through a Support Vector Machine (SVM). Trained on the UIUC Texture Database and the 15-scene dataset, this classifier distinguishes between general scenes (e.g., a sky or a specific object) and potential textures (e.g., grass or stone).
3. Local Textureness and Consistency
A valid exemplar must exhibit internal homogeneity. The algorithm evaluates this by comparing the candidate patch against its own sub-regions using two primary features:
- Binary Gabor Pattern (BGP): A rotation-invariant descriptor used to assess structural similarity and edge consistency.
- Color Histograms: Used to ensure that the color distribution remains uniform across the entire patch, preventing the inclusion of color gradients or localized defects.
4. Scoring and Ranking
Final candidates are ranked using a composite score $T$: $$T = G + S - C$$ Where $G$ represents the global SVM score, $S$ denotes structural similarity (BGP), and $C$ is a penalty for color inconsistency.
Experimental Results
The algorithm was tested on a variety of high-resolution (800x600) natural images, including complex patterns like leopard spots and floral fields.
The system demonstrated remarkable efficiency, with processing times ranging between 92ms and 97ms. This represents a significant improvement over previous manifold-based methods, which could take several minutes to achieve similar results. In a comparative study involving 100 images, human artists consistently rated the exemplars produced by this method as more "satisfactory" and "synthesizable" than those from existing state-of-the-art automated tools.
Conclusion
By leveraging the hierarchical nature of "textureness" — evaluating both the global context and local self-similarity — the proposed method provides a robust solution for automated exemplar extraction. While the stochastic nature of the initial sampling introduces slight variability between runs, the speed and accuracy of the system make it a viable tool for real-time creative workflows. Future work may explore the integration of deep learning features to further refine the extraction of highly structured, non-stationary textures.
Summary updated