Image color transfer is a
function that maps (transforms) the
color
Color (or colour in English in the Commonwealth of Nations, Commonwealth English; American and British English spelling differences#-our, -or, see spelling differences) is the visual perception based on the electromagnetic spectrum. Though co ...
s of one (source)
image
An image or picture is a visual representation. An image can be Two-dimensional space, two-dimensional, such as a drawing, painting, or photograph, or Three-dimensional space, three-dimensional, such as a carving or sculpture. Images may be di ...
to the colors of another (target) image. A color mapping may be referred to as the
algorithm
In mathematics and computer science, an algorithm () is a finite sequence of Rigour#Mathematics, mathematically rigorous instructions, typically used to solve a class of specific Computational problem, problems or to perform a computation. Algo ...
that results in the mapping function or the algorithm that transforms the image colors. The image modification process is sometimes called ''color transfer'' or, when
grayscale images are involved, ''brightness transfer function (BTF)''; it may also be called ''photometric camera calibration'' or ''radiometric camera calibration''.
The term ''image color transfer'' is a bit of a misnomer since most common algorithms transfer both color and shading. (Indeed, the example shown on this page predominantly transfers shading other than a small orange region within the image that is adjusted to yellow.)
Algorithms
There are two types of image color transfer algorithms: those that employ the statistics of the colors of two images, and those that rely on a given
pixel
In digital imaging, a pixel (abbreviated px), pel, or picture element is the smallest addressable element in a Raster graphics, raster image, or the smallest addressable element in a dot matrix display device. In most digital display devices, p ...
correspondence between the images. In a wide-ranging review, Faridul and others identify a third broad category of implementation, namely user-assisted methods.
An example of an algorithm that employs the statistical properties of the images is
histogram matching
In image processing, histogram matching or histogram specification is the transformation of an image so that its image histogram, histogram matches a specified histogram. The well-known histogram equalization method is a special case in which the s ...
. This is a classic algorithm for color transfer, but it can suffer from the problem that it is too precise so that it copies very particular color quirks from the target image, rather than the general color characteristics, giving rise to color artifacts. Newer statistic-based algorithms deal with this problem. An example of such algorithm is one that adjusts the
mean
A mean is a quantity representing the "center" of a collection of numbers and is intermediate to the extreme values of the set of numbers. There are several kinds of means (or "measures of central tendency") in mathematics, especially in statist ...
and the
standard deviation
In statistics, the standard deviation is a measure of the amount of variation of the values of a variable about its Expected value, mean. A low standard Deviation (statistics), deviation indicates that the values tend to be close to the mean ( ...
of each of the source image channels to match those of the corresponding reference image channels. This adjustment process is typically performed in the Lαβ or
Lab color spaces.
[Color Transfer between Images](_blank)
/ref>
A common algorithm for computing the color mapping when the pixel correspondence is given is building the joint-histogram (see also co-occurrence matrix) of the two images and finding the mapping by using dynamic programming based on the joint-histogram values.
When the pixel correspondence is not given and the image contents are different (due to different point of view), the statistics of the image corresponding regions can be used as an input to statistics-based algorithms, such as histogram matching. The corresponding regions can be found by detecting the corresponding features.
Liu provides a review of image color transfer methods. The review extends into considerations of video color transfer and deep learning methods including Neural style transfer.
Applications
Color transfer processing can serve two different purposes: one is calibrating the colors of two cameras for further processing using two or more sample images, the second is adjusting the colors of two images for perceptual visual compatibility.
Color calibration
The aim of color calibration is to measure and/or adjust the color response of a device (input or output) to a known state. In International Color Consortium (ICC) terms, this is the basis for an additional color characterization of the device ...
is an important pre-processing task in computer vision
Computer vision tasks include methods for image sensor, acquiring, Image processing, processing, Image analysis, analyzing, and understanding digital images, and extraction of high-dimensional data from the real world in order to produce numerical ...
applications. Many applications simultaneously process two or more images and, therefore, need their colors to be calibrated. Examples of such applications are: Image differencing, registration, object recognition
Object recognition – technology in the field of computer vision for finding and identifying objects in an image or video sequence. Humans recognize a multitude of objects in images with little effort, despite the fact that the image of the ...
, multi-camera tracking
Tracking may refer to:
Science and technology Computing
* Tracking, in computer graphics, in match moving (insertion of graphics into footage)
* Tracking, composing music with music tracker software
* Eye tracking, measuring the position of ...
, co-segmentation and stereo reconstruction.
Other applications of image color transfer have been suggested. These include the co-option of color palettes from recognised sources such as famous paintings and the use as a further alternative to color modification methods commonly found in commercial image processing applications such as ‘posterise’, ‘solarise’ and ‘gradient’. A web application has been made available to explore these possibilities.
Nomenclature
The use of the terms ''source'' and ''target'' in this article reflects the usage in the seminal paper by Reinhard et al. However, others such as Xiao and Ma reverse that usage and indeed it seems more natural to consider that the colors from a ''source'' image are directed at a ''target'' image. Adobe use the term ''source'' for the color reference image in the Photoshop ''Match Color'' function. Because of confusion over this terminology some software has been released into the public domain with incorrect functionality. To minimise further confusion, it may be good practice henceforth to utilise terms such as ''input image'' or ''base image'' and ''color source image'' or ''color palette image'' respectively.
See also
* List of colors
These are the lists of colors;
* List of colors: A–F
* List of colors: G–M
* List of colors: N–Z
* List of colors (alphabetical)
* List of colors by shade
* List of color palettes
* List of Crayola crayon colors
* List of RAL colours
* List o ...
* Color chart
A color chart or color reference card is a flat, physical object that has many different color samples present. They can be available as a single-page chart, or in the form of swatchbooks or color-matching fans.
Typically there are two differ ...
* Color management
Color management is the process of ensuring consistent and accurate colors across various devices, such as monitors, printers, and cameras. It involves the use of color profiles, which are standardized descriptions of how colors should be disp ...
* ICC profile
In color management, an ICC profile is a set of data that characterizes a color input or output device, or a color space, according to standards promulgated by the International Color Consortium (ICC). Profiles describe the color attributes o ...
* IT8
* Optical transfer function
The optical transfer function (OTF) of an optical system such as a camera, microscope, human eye, or image projector, projector is a scale-dependent description of their imaging contrast. Its magnitude is the image contrast of the Sine and cosine ...
References
{{color topics
Image processing
Color
Digital imaging