AI Glossary / Computer vision and multimodal AI / Intermediate

Colorization (scribble-based)

Definition

Scribble-based colorization adds color to a grayscale image using sparse color marks supplied by a person. An algorithm propagates those hints into unmarked regions according to image structure and its modeling assumptions, reducing the need to paint every pixel manually.

What it means

An artist may mark a shirt with a short blue stroke and a face with a skin-colored stroke. These marks indicate intended colors rather than precise region outlines. A classical optimization method uses similarities in nearby grayscale intensities to guide how the color information spreads. The process is interactive: additional or revised hints can correct unwanted leakage. The output is a plausible or artist-directed interpretation. A grayscale photograph usually does not contain enough information to determine its original colors uniquely, so a realistic-looking colorization does not establish historical color accuracy.

How it works

A typical classical workflow separates brightness-like information from color components. The grayscale image supplies the structural guide, while user strokes constrain color components at selected pixels. The algorithm favors similar colors at neighboring locations with similar intensities, while respecting the supplied hints. This can be expressed as a quadratic optimization and solved as a system of equations.
The resulting color components are combined with the grayscale structure to produce a color image. Boundaries with strong intensity changes can help stop propagation, but an actual color boundary may have little grayscale contrast. Conversely, texture within one object may create intensity changes that complicate propagation. User guidance and review remain important because the model does not automatically know every object's identity or material.

Three practical examples

  • An archive creates clearly labeled interpretive color versions of historical photographs while preserving the original grayscale scans.
  • A concept artist quickly explores alternative color schemes for a grayscale illustration using a small number of controlled strokes.
  • A restoration researcher compares how different propagation methods handle hair, clothing boundaries and low-contrast regions, measuring the amount of user correction required.

Think of it this way

Think of placing a few drops of colored ink into regions of a drawing and guiding where the color may spread. The analogy helps explain sparse hints and propagation, but real diffusion is not the algorithm. The computer uses numerical relationships, and apparent image boundaries may not correspond to closed physical barriers.

Worked example

Consider a simplified chain of five equally connected locations, with the first constrained to color-component value 0 and the last to 100. If the model penalizes squared differences between neighbors equally, a minimum-energy interpolation is [0,25,50,75,100]. The hints determine the endpoints, while the smoothness assumption fills the middle.
If the image contains a strong boundary between the third and fourth locations, reducing that connection's weight can allow a sharper color transition there. The actual image algorithm uses two-dimensional neighborhoods and weights derived from image information; it is not simply this one-dimensional interpolation. The example shows how constraints and relationships jointly determine unmarked values, rather than recovering a uniquely known original color.

Illustrative case study

Fictional example: Amber Archive prepares an interpretive color version of a street photograph. An editor marks a shop awning red based on a written description but has no evidence for a passerby's coat. The team labels the uncertain choice, keeps the unmodified scan and adds more hints where coat color leaks into the wall. Its publication notes distinguish documented information from artistic interpretation. The case illustrates responsible workflow design and algorithmic correction, not a claim that the colorized image reproduces every historical detail.

Common misconceptions and mistakes

A few scribbles do not guarantee correct boundaries or historically accurate colors. Similar grayscale intensities can belong to different materials, and different intensities can belong to one material under varying illumination. Colorization is not the inverse of grayscale conversion in a uniquely solvable sense. More saturated hints are not necessarily more realistic. The process differs from color transfer, which generally borrows appearance from a reference image. Finally, a classical scribble-based method does not require a trained neural network, though learned systems can also accept user hints.

Business use

Businesses can use this approach for creative exploration, restoration presentations and controlled recoloring. Agree the purpose of the result and how interpretive edits will be labeled. Retain the original, user hints and processing settings so the work can be reviewed and revised. For archival or product-related use, distinguish evidence-supported colors from invented choices. Evaluate difficult boundaries at output resolution, and avoid reporting speed improvements without counting the human effort needed to place hints and fix errors. The practical benefit depends on the full interactive workflow.

People also ask

Can the method discover the true color of any grayscale object?

No. Different original colors can produce similar grayscale values, so hints and assumptions cannot remove all ambiguity.

Why does color sometimes spread across an object boundary?

The boundary may have weak grayscale contrast or insufficient guidance, causing the propagation model to connect the regions.

Do I need to outline every object precisely?

Not necessarily. Sparse hints are the main idea, but challenging boundaries may require additional marks or a different editing approach.

Check your understanding

A coat looks convincingly blue after a blue scribble was supplied. Does the result prove the original coat was blue?

Answer: No. The output reflects the supplied hint and propagation model; historical color needs independent evidence.

Related terms

  • Optimization
  • Color transfer
  • colorization
  • image propagation
  • grayscale
  • interactive segmentation
  • image restoration

Learn next

Learn why grayscale conversion loses color information, then experiment with sparse hints on regions with strong and weak boundaries. Study weighted neighborhood relationships before examining the optimization equations of a particular method.

  • Optimization

More in Computer vision and multimodal AI

  • Color models - Color models are mathematical ways of describing color through components or coordinates.
  • Color quantization - Color quantization reduces the set of colors used to represent an image, typically by mapping original colors to a smaller palette.
  • Color2Gray - Color2Gray is a color-to-grayscale method designed to preserve visually important distinctions that can disappear when an image's color information is removed.
  • Combinatorial explosion - Combinatorial explosion is the rapid growth in the number of possible combinations, arrangements or decision sequences as a problem becomes larger.
  • Complex steerable pyramid - A complex steerable pyramid is a multiscale image representation that separates image structure into orientation-selective bands with complex-valued...
  • Compositing equation - The compositing equation describes how foreground color, background color and a mixing value combine into an observed pixel.

Sources

Levin, Lischinski and Weiss, Colorization using Optimization, primary paper: https://webee.technion.ac.il/people/anat.levin/papers/colorization-siggraph04.pdf Author-affiliated publication record: https://cris.technion.ac.il/en/publications/colorization-using-optimization-4/ Primary paper and institutional research excerpts consulted; full derivation and editorial review remain pending. The chain example is an original simplified model.

Previous: Coloring Next: Column

  • Home
  • Daily AI Updates
  • Blog
  • AIFBL Academy
  • AI Glossary
  • Products and Tools
  • Store
  • Free CFO AI Prompt Pack
  • About Shihan Sheriff
  • Privacy Policy
  • Terms of Use
  • Refund Policy
  • Cookie Policy
  • Earnings Disclaimer