TL;DR
This paper introduces HDP-2DHMM, a nonparametric Bayesian framework that bridges the gap between structural texture modeling and high-quality patch-based synthesis. By using a Hierarchical Dirichlet Process (HDP), the model automatically discovers the optimal number of "textons" (visual building blocks) and their spatial relationships. This enables texture synthesis that is roughly 25x faster than standard image quilting while maintaining comparable visual quality.
The Two Camps of Texture Synthesis
Historically, texture synthesis has been split into two distinct camps:
- Statistical Modeling: Methods like Markov Random Fields attempt to understand the underlying "grammar" of a texture. While offering great semantic insight, they are often slow and produce blurry or unrealistic results.
- Patch-Based Rendering: Techniques like "image quilting" essentially "copy-paste" blocks from a source image. These look highly realistic and are relatively fast, but they lack a semantic understanding of the texture and require exhaustive, computationally expensive searches across the entire source image for every new patch.
The authors aim to combine the best of both worlds: a model that "understands" the structure of the texture to drastically speed up the search process, while still using high-quality patches for the final output.
Methods: The HDP-2DHMM Framework
The core contribution is the HDP-2DHMM (Hierarchical Dirichlet Process 2D Hidden Markov Model). The framework operates in two main phases: learning the texture structure and synthesizing the new image.
- 2D Hidden Markov Model (2DHMM): The texture is treated as a grid where each cell has a "hidden state" representing a specific texton. The probability of a texton appearing depends on its neighbors (specifically those to its left and above), effectively capturing the spatial layout.
- Hierarchical Dirichlet Process (HDP): This is the "nonparametric" component. Instead of requiring a human to pre-define the number of texton types (e.g., "this texture has 5 unique shapes"), the HDP allows the model to automatically determine the vocabulary size based on the input image's complexity. It uses a "stick-breaking" prior that favors simpler models but allows for new textons to be created if the data is highly irregular.
- Feature Representation: Each $24 \times 24$ image patch is converted into a high-dimensional feature vector (7992 dimensions) using a bank of filters (DOG, DOOG) and color information.
- Synthesis via Image Quilting: Once the model jointly learns the texton vocabulary and the transition rules, synthesis becomes a two-step process. First, it samples a "texton map" (a grid of labels). Second, it fills those labels with actual image patches using a constrained version of image quilting.
Key Insights
- Automatic Complexity Scaling: The use of HDP makes the model "self-tuning." For a simple, repetitive brick wall, it might only learn a few textons. For a complex, messy pile of leaves, it will automatically expand its vocabulary to capture the variance.
- Joint Learning: Unlike previous methods that cluster textons first and then try to learn their layout, this model learns the vocabulary and the spatial rules simultaneously. This ensures that the discovered textons are actually useful for predicting their neighbors.
- Drastic Search Space Reduction: In standard image quilting, finding the "next" patch requires searching the entire source image. In HDP-2DHMM, the model dictates exactly which cluster of patches to look in. This turns a global search into a local one, driving massive performance gains.
Key Results
The authors evaluated their method using standard texture benchmarks (including the original Image Quilting suite) and natural images.
- Speed: Synthesis of a $384 \times 384$ image takes approximately 1 second on a 2.4 GHz CPU. This is roughly 25 times faster than traditional image quilting.
- Learning Efficiency: The model typically converges in about 30 sampling iterations, taking roughly 100 seconds for the learning phase.
- Visual Quality: The results are visually comparable to state-of-the-art patch-based methods. As seen in the results, the model successfully captures vertical, horizontal, and gridded layouts, mapping them accurately to sampled texton maps before final synthesis.
- Versatility: Beyond synthesis, the model can perform unsupervised image segmentation, successfully dividing natural images into meaningful textured regions.
Limitations and Future Work
While highly effective, the approach has a few limitations:
- Alignment Issues: In some failure cases, textons are not perfectly aligned, leading to visible seams or structural breaks in the synthesized output.
- Fixed Patch Size: The current implementation uses a fixed $24 \times 24$ patch size. While the model is less sensitive to patch size than previous methods, it still requires manual configuration.
- Boundary Cases: The 2D-HMM utilizes simplified logic for the top and left-most boundaries of an image, which could be refined to better handle complex global structures.
Summary updated