pfscolortransform(1) | General Commands Manual | pfscolortransform(1) |
pfscolortransform - Apply color calibration using user provided matrix file.
pfscolortransform (--xyzrgb matrix-file | --rgbxyz matrix-file) [--transpose]
Use this command to calibrate colours using a calibration matrix supplied in a text file. The command is intended for linearized (not gamma corrected) color spaces. The matrix should be 3x3 and it should transform from CIE XYZ to ITU rec. 709 RGB (sRGB primaries but linear, no gamma) or from the same RGB to CIE XYZ (see options below). The text file should contain three rows with numbers separated by a comma, for example:
If the --xyzrgb is supplied, the pixel values are color-transformed as follows:
where ' is matrix transposition, * is matrix multiplication, RGB is a vector of RGB values and XYZ is the vector of CIE XYZ trichromatic values. If the --rgbxyz is supplied, the pixel values are color-transformed as follows:
Please report bugs and comments to the pfstools discussion group (http://groups.google.com/group/pfstools).