3 Texture synthesis and Markov random fields
Background overviews: Texture Synthesis (n.d.) and Markov Random Field (n.d.) (Wikipedia).
3.1 Non-parametric sampling
Efros and Leung (1999) grow a texture pixel by pixel, choosing each new value by sampling from input neighbourhoods that best match the already synthesised neighbourhood. This is a Markov random field (MRF) model with the conditional distribution estimated directly from the example. Wei and Levoy (2000) made it fast with tree-structured vector quantisation and a fixed scan order. WFC’s overlapping model can be read as the hard-constraint limit of the same idea: only exact neighbourhood matches are allowed.
3.2 Patch-based methods
- Image quilting (Efros and Freeman 2001) places whole input blocks with a small overlap and cuts the overlap along a minimum-error boundary. It is the simplest method that preserves whole motifs and produces seams that can be controlled, which is exactly what banner blending needs (Chapter 7).
- Graphcut textures (Kwatra et al. 2003) generalise the seam to a graph min-cut and allow patches of any shape.
- PatchMatch (Barnes et al. 2009) makes nearest-patch search fast and underlies modern inpainting and reshuffling.
- Exemplar-based inpainting (Criminisi et al. 2004) fills a hole by copying patches in an order driven by structure, which is a direct model for “fill the gap between two fixed motifs”.
3.3 MRF models more generally
The classical statistical framing is Geman and Geman (1984) (Gibbs sampling, simulated annealing on MRFs). Paget and Longstaff (1998) use a non-causal, non-parametric multiscale MRF for texture synthesis, and Zhu et al. (1998) (FRAME) fit maximum-entropy models matching filter statistics. These give a principled energy, \(E(x) = \sum\) local mismatch, that can mix hard constraints (pinned motifs, symmetry) and soft style terms, and they can be sampled deterministically from a seed.
3.4 Fit for this project
Binary charts are a very easy case for these methods: the alphabet is two symbols, the grid is small, and exact matching is cheap. Image quilting or an MRF with pinned regions is the most direct way to get the “blend between motifs” behaviour. The main risk is verbatim copying: with a small corpus quilting can reproduce large chunks of a single source chart.