An implementation of various color transfer algorithms.
HEALTH ? 65 / Stable
An implementation of various color transfer algorithms.
// readme
An implementation of various algorithms for transferring the colors from a reference image to a content image while preserving the qualitative appearance of the content image (i.e., color transfer).
$ pip3 install colortrans
$ pip3 install --upgrade colortrans
The program can be used from the command line.
The general command line usage is shown below.
$ colortrans [--method METHOD] [--single-precision] CONTENT REFERENCE OUTPUT
CONTENT is the path to the content image, REFERENCE is the path to the style image, and OUTPUT
is the path to save the output image.
METHOD specifies the color transfer algorithm. The following methods are supported:
lhm Linear Histogram Matching [1] (default)pccm Principal Components Color Matching [2, 3]reinhard Reinhard et al. [4]If the optional --single-precision flag is present, 32-bit floats will be used instead of 64-bit floats.
If the launcher script was not installedβ¦