A Generative Model of Human Hair for Hair Sketching

Hong Chen, Song Chun ZhuCVPR 2005

Abstract

Human hair is a very complex visual pattern whose representation is rarely studied in the vision literature despite its important role in human recognition. In this paper, we propose a generative model for hair representation and hair sketching, which is far more compact than the physically based models in graphics. We decompose a color hair image into three bands: a color band (a) (by Luv transform), a low frequency band (b) for lighting variations, and a high frequency band (c) for the hair pattern. Then we propose a three level generative model for the hair image (c). In this model, image (c) is generated by a vector field (d) that represents hair orientation, gradient strength, and directions; and this vector field is in turn generated by a hair sketch layer (e). We identify five types of primitives for the hair sketch each specifying the orientations of the vector field on the two sides of the sketch. With the five-layer representation (a-e) computed, we can reconstruct vivid hair images and generate hair sketches. We test our algorithm on a large data set of hairs and some results are reported in the experiments.

Introduction

Modeling human hair presents a significant challenge for both computer vision and computer graphics. In graphics, traditional models often simulate tens of thousands of individual 3D strands. While highly realistic, this approach is computationally heavy and "tedious" for artistic creation. Conversely, computer vision has often treated hair as a simple oriented texture, similar to wood grain. However, hair possesses a global structure—it flows, parts, and clumps—that local texture models fail to capture.

Researchers at UCLA propose a hierarchical generative model that bridges this gap. By treating hair as a structured "sketch" rather than a collection of individual strands, the model provides a way to both understand and synthesize complex hairstyles using a compact set of visual primitives. This approach focuses on the "perceptual essence" of hair, enabling efficient hair sketching and image reconstruction.

The Hierarchical Generative Model

The core of the proposed framework is the decomposition of a hair image into three distinct bands: color, lighting (low frequency), and the hair pattern (high frequency). The hair pattern is then modeled through a three-layer generative process.

The analysis and synthesis pipeline of the proposed hair model.

As shown in the pipeline above, the model consists of three primary layers:

  1. The Hair Sketch ($S$): The top level, consisting of a few dozen curves representing the boundaries of hair strands and wisps.
  2. The Vector Field ($V$): This layer translates the sparse sketch into a dense field of orientations, gradient strengths, and directions across every pixel. The sketch curves act as "banks" that constrain the flow of the vector field.
  3. The Image Layer ($I_H$): Finally, the vector field is used to synthesize the texture, ensuring low intensity changes along the flow and high contrast perpendicular to it.

Hair Sketch Primitives

The authors identify a "dictionary" of five primitive types that define the hair sketch. These primitives specify how the vector field behaves on either side of a curve:

  • Side boundaries: Where hair meets skin or the background.
  • Source and sink: Where hair starts (e.g., the part) or ends.
  • Occluding boundaries: Where one clump of hair overlaps another.
  • Dividing lines: Where hair grows in opposite directions.
  • Stream lines: High-contrast flows within a single clump.
Examples of hair primitives (A-F) identified within different hairstyles to guide the vector field synthesis.

Inference and Synthesis

To convert a real photograph into this model, the system uses a greedy "matching pursuit" algorithm to identify the best sketch primitives. A sophisticated Markov Chain Monte Carlo (MCMC) technique, specifically the Swendsen-Wang cut, is employed to ensure the direction of hair flow is globally consistent. This resolves local ambiguities in image gradients, such as whether hair is flowing from root to tip or vice versa.

Key Results and Conclusion

The model was tested on a dataset of 300 human hair images. Key findings include:

  • Perceptually Equivalent Reconstruction: The model can extract a sketch from a photo and synthesize a new image that is perceptually indistinguishable from the original.
  • Artistic Rendering: Because the model is based on strokes, it can automatically generate "artist-style" sketches that resemble hand-drawn line art.
  • Error Correction: The sketch-based approach significantly outperformed local-only methods by using global context to correct errors in the initial orientation field, particularly around discontinuities like hair parts.

While the model currently struggles with highly disordered styles like braids or very frizzy hair, it represents a significant step toward a compact, perceptually-driven representation of human hair for both vision and graphics applications.

Summary updated

Abstract

Human hair is a very complex visual pattern whose representation is rarely studied in the vision literature despite its important role in human recognition. In this paper, we propose a generative model for hair representation and hair sketching, which is far more compact than the physically based models in graphics. We decompose a color hair image into three bands: a color band (a) (by Luv transform), a low frequency band (b) for lighting variations, and a high frequency band (c) for the hair pattern. Then we propose a three level generative model for the hair image (c). In this model, image (c) is generated by a vector field (d) that represents hair orientation, gradient strength, and directions; and this vector field is in turn generated by a hair sketch layer (e). We identify five types of primitives for the hair sketch each specifying the orientations of the vector field on the two sides of the sketch. With the five-layer representation (a-e) computed, we can reconstruct vivid hair images and generate hair sketches. We test our algorithm on a large data set of hairs and some results are reported in the experiments.
BibTeX
@inproceedings{chen2005generative,
  author = {Hong Chen and Song Chun Zhu},
  title = {{A Generative Model of Human Hair for Hair Sketching}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2005},
  url = {https://openreview.net/forum?id=rJ4j31Mu-r},
}
Figure