1pfscolortransform(1)        General Commands Manual       pfscolortransform(1)
2
3
4

NAME

6       pfscolortransform  - Apply color calibration using user provided matrix
7       file.
8

SYNOPSIS

10       pfscolortransform  (--xyzrgb  matrix-file   |   --rgbxyz   matrix-file)
11       [--transpose]
12

DESCRIPTION

14       Use  this  command to calibrate colours using a calibration matrix sup‐
15       plied in a text file.  The command  is  intended  for  linearized  (not
16       gamma  corrected) color spaces.  The matrix should be 3x3 and it should
17       transform from CIE XYZ to ITU rec. 709 RGB (sRGB primaries but  linear,
18       no gamma) or from the same RGB to CIE XYZ (see options below). The text
19       file should contain three rows with numbers separated by a  comma,  for
20       example:
21
22              0.0292,0.0126,0.0009
23              0.0052,0.0340,-0.0049
24              0.0055,-0.0059,0.0409
25
26       If  the --xyzrgb is supplied, the pixel values are color-transformed as
27       follows:
28
29              [RGB]' = M * [XYZ]
30
31       where ' is matrix transposition, * is matrix multiplication, RGB  is  a
32       vector of RGB values and XYZ is the vector of CIE XYZ trichromatic val‐
33       ues. If the --rgbxyz is supplied, the  pixel  values  are  color-trans‐
34       formed as follows:
35
36              [XYZ]' = M * [RGB]
37

OPTIONS

39       --xyzrgb matrix-file, -x matrix-file
40              User  provided matrix is a conversion matrix to convert from XYZ
41              to RGB color space.
42
43       --rgbxyz matrix-file, -r matrix-file
44              User provided matrix is a conversion matrix to convert from  RGB
45              to XYZ color space.
46
47       --transpose, -t
48              Take transpose of provided matrix file.
49

EXAMPLES

51       pfsin  memorial.hdr  |  pfscolortransform  -x matrix.txt | pfsout memo‐
52       rial_gc.ppm
53
54              Color calibrate memorial image with matrix  in  matrix.txt  file
55              and save to memorial_gc.ppm.
56

SEE ALSO

58       pfsin(1) pfsout(1) pfsdisplayfunction(1)
59

BUGS

61       Please  report  bugs  and  comments  to  the  pfstools discussion group
62       (http://groups.google.com/group/pfstools).
63
64
65
66                                                          pfscolortransform(1)
Impressum