Patternshop: Editing Point Patterns by Image Manipulation

Xingchang Huang, Tobias Ritschel, Hans-Peter Seidel, Pooran Memari, Gurprit Singh · DOI

Introduction

Point patterns are a fundamental element in computer graphics, serving as the building blocks for everything from artistic stippling and digital halftoning to the placement of vegetation in virtual ecosystems. These patterns are defined by two primary characteristics: density (the number of points in a given area) and correlation (the spatial arrangement of those points, such as the even spacing of "blue noise" or the bunching of "cluster noise").

While manipulating density is intuitive—often represented by a simple grayscale map—manipulating correlation is notoriously difficult. Traditionally, correlation is defined by high-dimensional mathematical constructs like Pair Correlation Functions (PCFs) or power spectra. Most artists lack the mathematical intuition to design a PCF from scratch. Furthermore, existing tools struggle with sharp transitions between different noise types, often resulting in messy artifacts at the boundaries. Patternshop addresses these challenges by embedding high-dimensional point correlations into a 2D perceptual space, allowing users to edit complex distributions as if they were standard digital images.

The Patternshop Framework

The authors propose a pipeline that translates the complex mathematics of point patterns into the familiar language of image editing through four key steps:

1. Perceptual Embedding

To make correlation intuitive, the researchers generated a vast corpus of realizable point patterns. They used a pre-trained VGG network to extract visual features from these patterns, capturing how humans actually perceive them. They then applied Multidimensional Scaling (MDS) to squash these high-dimensional features into a 2D plane. This ensures that patterns that look similar to the human eye are placed close together in the editing space.

2. The CIELAB Bridge

The framework maps these properties to the CIELAB color space. In this model, the $L$ (luminance) channel represents density, while the $a$ and $b$ (chroma) channels represent the 2D coordinates in the perceptual correlation space. This transformation turns a complex point pattern into a standard three-channel raster image, enabling the use of off-the-shelf tools like Photoshop to "paint" density and noise characteristics simultaneously.

3. Edge-Aware Synthesis

To convert an edited image back into a discrete set of points, the authors developed a new optimization objective. It utilizes a bilateral-style filter that respects "edges" in both density and correlation. This is a significant advancement, as it prevents different noise types from bleeding into each other at sharp boundaries, allowing for clean transitions between disparate stochastic distributions.

4. Neural Network Inference

To facilitate the editing of existing works, the authors trained a CNN (based on the pix2pix architecture) capable of "de-stippling" an existing point pattern. This network extracts the underlying density and correlation maps, which can then be modified using standard image processing techniques.

Key Insights and Results

The most profound contribution of Patternshop is the treatment of correlation as color. By treating noise characteristics as a 2D "chroma" plane, the system allows artists to pick a "feel" for their noise as easily as they would pick a color from a palette.

Performance and Intuition

  • Superior Detail: Compared to previous state-of-the-art methods, Patternshop preserves one to two orders of magnitude more detail in edited patterns, particularly near sharp boundaries.
  • Intuitive Navigation: In user studies, participants were asked to match a reference noise by selecting coordinates in the 2D embedding. Users were remarkably accurate, with an average error of only 14.9%—outperforming users attempting to match colors in a standard Photoshop LAB color picker (21.3% error).
  • Versatility: The framework supports a wide range of operations, including recoloring a point pattern to change its noise type, relighting a stippled face, and using "Content-Aware Fill" to expand a small patch of points into a large, seamless landscape.

Limitations and Future Work

Despite its versatility, the framework has limitations. The primary bottleneck is synthesis speed; while the neural network can extract maps in milliseconds, generating 10,000 points from an edited map via optimization takes approximately one minute, preventing truly live interactive painting. Additionally, the 2D embedding is limited by the "basis" patterns used to create it and may not yet capture highly exotic or anisotropic (directional) patterns found in nature, such as wood grain.

Future research may extend this framework to multi-class point patterns (e.g., simulating different species of trees in a forest) and explore direct point-based operations that bypass the rasterization step entirely to improve performance.

Summary updated

BibTeX
@article{huang2023patternshop,
  author = {Xingchang Huang and Tobias Ritschel and Hans-Peter Seidel and Pooran Memari and Gurprit Singh},
  title = {{Patternshop: Editing Point Patterns by Image Manipulation}},
  journal = {ACM Trans. Graphics},
  year = {2023},
  doi = {10.1145/3592418},
}
Figure