Debian Codegraph @

doc/tiffgamut.html

raw symbols SCIP
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <html>
3 <head>
4 <title>tiffgamut</title>
5 <meta http-equiv="content-type" content="text/html;
6 charset=windows-1252">
7 <meta name="author" content="Graeme Gill">
8 </head>
9 <body>
10 <h2><b>xicc/tiffgamut</b></h2>
11 <h3>Summary</h3>
12 Create a gamut file or X3DOM file of the color gamut of the contents
13 of a set of TIFF or JPEG image.<br>
14 <br>
15 <span style="font-weight: bold;">tiffgamut</span> allows creation of
16 gamut files from the pixel values in a set of TIFF and/or JPEG
17 raster images, as defined by an ICC profile, in L*a*b* or CIECAM02
18 Jab colorspace, and can also represent the gamut as a X3DOM file.
19 This can be used for visualizing and comparing the gamut of an image
20 to the colorspace it is in, or a colorspace it might get transformed
21 into, and can also be used to create an image source gamut for use
22 with <a href="collink.html"> collink</a>, something that can be of
23 particular importance if your images are encoded in a large gamut
24 space such as L*a*b*, ProPhoto, scRGB etc.<br>
25 <br>
26 <span style="font-weight: bold;">NOTE</span> that if you are
27 creating an image gamut suitable for use with the <a
28 href="collink.html">collink</a> <a href="collink.html#g">-g</a>
29 or <a href="collink.html#G">-G</a> flags, or <a
30 href="colprof.html#g">colprof -g</a>, use the Jab appearance space
31 intent for appearance space gamut mappings, and the same input
32 viewing conditions to be used in <span style="font-weight: bold;">collink</span>
33 or <span style="font-weight: bold;">colprof</span> using the -c
34 flag, i.e. "tiffgamut -pj -cmt sRGB.icm image.tif" See <a
35 href="Scenarios.html#LP3">Image dependent gamut mapping using
36 device links</a> for an example workflow.<br>
37 <br>
38 See <a href="3dformat.html">3D Viewing Format</a> for switching to
39 VRML or X3D output format.<br>
40 <h3>Usage Summary</h3>
41 <span style="font-family: monospace;">tiffgamut [-v level]
42 [profile.icm | embedded.tif/jpg] infile1.tif/jpg [infile2.tif/jpg
43 ...]</span><br style="font-family: monospace;">
44 <span style="font-family: monospace;">&nbsp;-v&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
45
46
47
48
49
50
51
52
53 Verbose</span><br style="font-family: monospace;">
54 &nbsp; <span style="font-family: monospace;">-d
55 sres&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Surface resolution
56 details 1.0 - 50.0</span><br style="font-family: monospace;">
57 <span style="font-family: monospace;">&nbsp;-w&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
58 emit
59
60
61
62
63
64
65
66
67 X3DOM .x3d.html file as well as CGATS .gam file</span><br
68 style="font-family: monospace;">
69 <span style="font-family: monospace;">&nbsp;-n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
70 Don't
71
72
73
74
75
76
77
78
79 add X3DOM axes or white/black point</span><br style="font-family:
80 monospace;">
81 <span style="font-family: monospace;">&nbsp;-k&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
82 Add
83
84
85
86
87
88
89
90
91 markers for prim. &amp; sec. "cusp" points<br>
92 &nbsp;-f perc&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Filter by
93 popularity, perc = percent to use<br style="font-family:
94 monospace;">
95 </span><span style="font-family: monospace;">&nbsp;-i
96 intent&nbsp;&nbsp;&nbsp;&nbsp; p = perceptual, r = relative
97 colorimetric,</span><br style="font-family: monospace;">
98 <span style="font-family: monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
99 s
100
101
102
103
104
105
106
107
108 = saturation, a = absolute (default), d = profile default</span><span
109 style="font-family: monospace;"></span><br style="font-family:
110 monospace;">
111 <span style="font-family: monospace;"></span><span
112 style="font-family: monospace;">&nbsp;-o
113 order&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; n = normal (priority: lut &gt;
114 matrix &gt; monochrome)</span><br style="font-family: monospace;">
115 <span style="font-family: monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
116 r
117
118
119
120
121
122
123
124
125 = reverse (priority: monochrome &gt; matrix &gt; lut)<br>
126 </span><span style="font-family: monospace;">&nbsp;</span><span
127 style="font-family: monospace;">-p oride</span><span
128 style="font-family: monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; l =
129 Lab_PCS (default), j = CIECAM02 Appearance Jab</span><br
130 style="font-family: monospace;">
131 <span style="font-family: monospace;"></span><span
132 style="font-family: monospace;">&nbsp;-c viewcond&nbsp;&nbsp; set
133 appearance mode and viewing conditions for CIECAM02,</span><br
134 style="font-family: monospace;">
135 <span style="font-family: monospace;"></span><span
136 style="font-family: monospace;"></span><span style="font-family:
137 monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
138 either
139
140
141
142
143
144
145
146
147 an enumerated choice, or a parameter:value change</span><span
148 style="font-family: monospace;"></span><br style="font-family:
149 monospace;">
150 <span style="font-family: monospace;"></span><tt> &nbsp; &nbsp;
151 &nbsp; &nbsp;&nbsp; &nbsp; </tt><tt><tt>pc - Critical print
152 evaluation environment (ISO-3664 P1)</tt><tt><br>
153 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </tt>pp
154
155 - Practical Reflection Print (ISO-3664 P2)<br>
156 &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; pe - Print evaluation
157 environment (CIE 116-1995)<br>
158 </tt><tt>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; pm - Print
159 evaluation with partial Mid-tone adaptation</tt><br
160 style="font-family: monospace;">
161 <span style="font-family: monospace;">&nbsp;&nbsp; &nbsp; &nbsp;
162 &nbsp; &nbsp; mt - Monitor in typical work environment</span><br
163 style="font-family: monospace;">
164 <span style="font-family: monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
165 &nbsp;
166
167
168
169
170
171
172
173
174 &nbsp; mb - Monitor in bright work environment</span><br
175 style="font-family: monospace;">
176 <span style="font-family: monospace;">&nbsp;&nbsp;&nbsp;&nbsp;
177 &nbsp; &nbsp;&nbsp;&nbsp; md - Monitor in darkened work
178 environment</span><br style="font-family: monospace;">
179 <span style="font-family: monospace;">&nbsp;&nbsp;&nbsp;&nbsp;
180 &nbsp; &nbsp;&nbsp;&nbsp; jm - Projector in dim environment</span><br
181 style="font-family: monospace;">
182 <span style="font-family: monospace;">&nbsp;&nbsp;&nbsp;&nbsp;
183 &nbsp; &nbsp;&nbsp;&nbsp; jd - Projector in dark environment</span><br
184 style="font-family: monospace;">
185 <span style="font-family: monospace;">&nbsp;&nbsp; &nbsp;&nbsp;
186 &nbsp;&nbsp;&nbsp; pcd - Photo CD - original scene outdoors</span><br
187 style="font-family: monospace;">
188 <span style="font-family: monospace;">&nbsp;&nbsp;&nbsp;&nbsp;
189 &nbsp; &nbsp;&nbsp;&nbsp; ob - Original scene - Bright Outdoors</span><br
190 style="font-family: monospace;">
191 <span style="font-family: monospace;">&nbsp;&nbsp;&nbsp;&nbsp;
192 &nbsp; &nbsp;&nbsp;&nbsp; cx - Cut Sheet Transparencies on a
193 viewing box</span><br style="font-family: monospace;">
194 <span style="font-family: monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
195 s:surround&nbsp;&nbsp;
196
197
198
199
200
201
202
203
204 n = auto, a = average, m = dim, d = dark,</span><br
205 style="font-family: monospace;">
206 <span style="font-family: monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
207 &nbsp;
208
209
210
211
212
213
214
215
216 &nbsp; &nbsp;&nbsp; c = transparency (default average)</span><br
217 style="font-family: monospace;">
218 <span style="font-family: monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
219 w:X:Y:Z&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
220
221
222
223
224
225
226
227
228 Adapted white point as XYZ (default media white)</span><br
229 style="font-family: monospace;">
230 <span style="font-family: monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
231 w:x:y&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
232
233
234
235
236
237
238
239
240 Adapted white point as x, y</span><br style="font-family:
241 monospace;">
242 <span style="font-family: monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
243 a:adaptation
244
245
246
247
248
249
250
251
252 Adaptation luminance in cd.m^2 (default 50.0)</span><br
253 style="font-family: monospace;">
254 <span style="font-family: monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
255 b:background
256
257
258
259
260
261
262
263
264 Background % of image luminance (default 20)<br>
265 &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; l:imagewhite Image
266 white in cd.m^2 if surround = auto (default 250)</span><br
267 style="font-family: monospace;">
268 <span style="font-family: monospace;"><span style="font-family:
269 monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
270 f:flare&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Flare light % of image
271 luminance (default 1)<br>
272 </span>&nbsp;</span><span style="font-family: monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
273
274
275 g:glare&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Glare light % of ambient
276 (default 5)</span><br style="font-family: monospace;">
277 <span style="font-family: monospace;">&nbsp;&nbsp;&nbsp; &nbsp;
278 &nbsp;&nbsp; g:X:Y:Z&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Glare color as
279 XYZ (default media white)</span><br style="font-family:
280 monospace;">
281 <span style="font-family: monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
282
283
284
285
286
287
288
289 g:x:y&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Glare color as x,
290 y</span><br>
291 <span style="font-family: monospace;"><tt><span style="font-family:
292 monospace;"><tt><span style="font-family: monospace;"><span
293 style="font-family: monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
294
295
296 h:hkscale&nbsp;&nbsp;&nbsp; Helmholtz-Kohlrausch effect
297 scale factor (default 1.0)<br>
298 </span></span><span style="font-family: monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
299
300
301
302
303
304
305 m:mtaf&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Mid-tone
306 partial adaptation factor (default 0.0)</span><br
307 style="font-family: monospace;">
308 <span style="font-family: monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
309
310
311 m:X:Y:Z&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Mid-tone Adaptation
312 white as XYZ (default D50)</span><br style="font-family:
313 monospace;">
314 <span style="font-family: monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
315
316
317 m:x:y&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Mid-tone
318 Adaptation white as x, y</span></tt></span></tt><br>
319 </span> <span style="font-family: monospace;"><span
320 style="font-family: monospace;">&nbsp;-x
321 pcent&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Expand/compress gamut
322 cylindrically by percent</span><br>
323 &nbsp;-O outputfile Override the default output filename &amp;
324 extension.</span><small><span style="font-family: monospace;"><br>
325 &nbsp;[profile.icm | embedded.tif/jpg]&nbsp;&nbsp;&nbsp;&nbsp;
326 File specifying device to CIE conversion<br>
327 &nbsp;infile1.tif/jpg
328 ...&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
329 One or more raster files to create gamut from<br
330 style="font-family: monospace;">
331 </span></small><br>
332 <h3>Usage Details and Discussion<br>
333 </h3>
334 The<b> -v</b> flag dumps out the ICC profile header information.<br>
335 <br>
336 The <b>-d</b> parameter controls the level of detail displayed in
337 the surface. The parameter roughly corresponds to a deltaE value, so
338 smaller values give greater detail. The default value is around 10,
339 and is a good place to start. Small values may take a lot of time to
340 generate, and will produce big files.<br>
341 <br>
342 The <b>-w</b> flag causes a X3DOM file to be produced, as well as a
343 gamut file.<br>
344 <br>
345 The <b>-n</b> flag suppresses the L*a*b* axes being created in the
346 X3DOM.<br>
347 <br>
348 The <span style="font-weight: bold;">-k</span> flag adds markers
349 for each of the primary and secondary "cusp" points (Red, Yellow,
350 Green, Cyan, Blue &amp; Magenta). No markers will be displayed if
351 the cusps cannot be determined.<br>
352 <br>
353 The <span style="font-weight: bold;">-f</span> <span
354 style="font-weight: bold;">perc</span> parameter turns on
355 filtering of the raster colors. The colors from the image are
356 clustered, and then sorted according to popularity, and then the <span
357 style="font-weight: bold;">perc</span> most common percentage of
358 colors are used to create the gamut surface. This may be useful in
359 creating a source gamut mapping surface that favors the important
360 colors within an image, and doesn't attempt to compress the color
361 reproduction in order to reproduce the little used colors. A value
362 of <span style="font-weight: bold;">perc</span> of 90 or 80 may be
363 a good place to start. Note that the filtering is performed
364 independently on each raster image processed, with the final gamut
365 being the union of all the filtered image gamuts.<br>
366 <br>
367 The <b>-i</b> flag selects the intent transform used for a lut
368 based profile. It also selects between relative and absolute
369 colorimetric for non-lut base profiles. Note that anything other
370 than colorimetric may not represent the native capabilities of the
371 device. The default intent will be absolute colorimetic for L*a*b*
372 output, and CIECAM02 appearance for Jab output.<br>
373 <br>
374 An ICC profile is allowed to contain more than the minimum number of
375 elements or table needed to describe a certain transform, and may
376 contain redundant descriptions. &nbsp;By default, LUT based table
377 information will be used first if present, followed by matrix/shaper
378 information, and only using monochrome information if it is all that
379 is present. The <b>-o</b> flag, reverses this
380 order.&nbsp;&nbsp;&nbsp; <br>
381 <br>
382 <span style="font-weight: bold;">-p</span>: By default the gamut
383 will be created in L*a*b* colorspace. If&nbsp; <span
384 style="font-weight: bold;">-pj</span> is selected, then CIECAM02
385 appearance space Jab will be used for the output, and the viewing
386 conditions will be taken into account. Jab space is what is normally
387 needed to be compatible with the default intents used in <a
388 href="colprof.html">colprof</a>. <span style="font-weight: bold;"><br>
389 </span>Note that the CIECAM02 output space selection by default uses
390 the colorimetric transform of the profile resulting in the
391 appearance of the native device, but that the perceptual or
392 saturation transforms may be used by selecting them using the <span
393 style="font-weight: bold;">-i</span> parameter, which may give a
394 different result with some profiles. This may be desirable if an
395 image is to be transformed through the perceptual or saturation
396 tables of a profile as part of a link with an Argyll generated
397 output profile, since it will then represent the apparent gamut of
398 the image when subject to these tables. If the absolute colorimetric
399 intent is chosen using <span style="font-weight: bold;">-ia</span>
400 in combinations with <span style="font-weight: bold;">-pj</span>,
401 then&nbsp; Jab with a fixed white reference is used, which emulates
402 an absolute CIECAM02 Jab appearance space. <br>
403 <br>
404 The <span style="font-weight: bold;">-c</span> parameter sets the
405 output space to CIECAM02 appearance Jab values, and also allows
406 choosing a set of viewing conditions, either by choosing a typical
407 viewing environment, or controlling particular viewing condition
408 parameters. This is only functional if an ICC profile is provided.<br>
409 <br>
410 The <b>-x</b> parameter allows expanding or compressing the
411 resulting gamut in a cylindrical direction by the given percentage
412 :- i.e "-x 120" will expand by 20%. This may be useful for creating
413 a general compression gamut mapping by using such an expanded device
414 gamut as input to <a href="collink.html#g">collink -g or -G</a>.<br>
415 <br>
416 The <span style="font-weight: bold;">-O</span> parameter allows the
417 output file name &amp; extension to be specified independently of
418 the last tiff/jpeg filename. Note that the full filename must be
419 specified, including the extension.<br>
420 <br>
421 If the TIFF or JPEG files are in a device space (ie. RGB, CMYK
422 etc.), then it is necessary to supply an ICC profile to translate
423 the device space values to a CIE space value such as L*a*b* or
424 CIECAM02 Jab space for creating a gamut surface. For the ICC profile
425 provided it is then possible to select exactly what type of
426 conversion is used. A TIFF or JPEGfile with an embedded ICC profile
427 may be supplied as the profile argument - e.g. to get the gamut of a
428 tiff file that contains an embedded profile use something like:<br>
429 <br>
430 &nbsp;&nbsp;&nbsp; tiffgamut image.tif image.tif<br>
431 <br>
432 To create a gamut suitable for CIECAM02&nbsp; gamut mapping space in
433 colprof or collink, something like<br>
434 <br>
435 &nbsp;&nbsp;&nbsp; tiffgamut -ir -pj -cmt&nbsp; image.icm image.tif<br>
436 <br>
437 where the viewing conditions "mt" should the same as the source
438 conditions in colprof or collink.<br>
439 <br>
440 If a TIFF file is already in a CIE space such as CIELab or ICCLab,
441 then it is not necessary to select an ICC profile,&nbsp; although a
442 PCS to PCS colorspace profile may be chosen. All the TIFF and JPEG
443 files must be in the same colorspace.<br>
444 <br>
445 One or more TIFF and/or JPEG files may be specified, and the gamut
446 is the union of the gamuts of each file. This is useful for creating
447 an image specific gamut mapping that can be applied to a set of
448 images with consistent results between the images. Note that the
449 output gamut file name will by default be taken from the last TIFF
450 or JPEG file specified, with the .gam extension added automatically.
451 The <span style="font-weight: bold;">-O</span> parameter will
452 override this default.<br>
453 <br>
454 <span style="font-weight: bold;">NOTES</span><br>
455 <br>
456 The white and black points put in the gamut are the colorspace white
457 and black points. For the purposes of latter gamut mapping, it is
458 assumed that the image should retain it's position within the
459 colorspace dynamic range. For an L*a*b* image, the values value
460 100,0,0 and 0,0,0 for white and black are assumed. An image in
461 L*a*b* should be adjusted be neutral to, and sit within the dynamic
462 range of those white and black points.<br>
463 <br>
464 <br>
465 <span style="font-weight: bold;"></span><br>
466 <br>
467 <br>
468 </body>
469 </html>