Debian Codegraph @

doc/refine.html

raw symbols SCIP
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <html>
3 <head>
4 <title>refine</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>tweak/refine</b></h2>
11 <h3>Summary</h3>
12 <span style="font-weight: bold;">Refine</span> creates an abstract
13 profile, by comparing CIE measurement values from two test charts.
14 The charts will usually be in <a href="File_Formats.html#.ti3">.ti3</a>
15 format, but only XYZ, Lab or spectral values will be used (ie. all
16 device space values are ignored). Typically the charts would be
17 printed on a target system (the one being emulated, say a printing
18 press, or created using an ideal target profile such as Rec709), and
19 the proofing system (the device that is being profiled). The
20 abstract profile that <span style="font-weight: bold;">refine</span>
21 produces will be a correction that makes the proofing system behave
22 more like the target. This can then be used to recreate the proofing
23 systems ICC profile, or device link. By feeding a previous abstract
24 correction profile in as well, iterative improvement can be made to
25 the proofing reproduction.<br>
26 <br>
27 <a href="colverify.html">colverify</a> is a useful tool to use on
28 the two test charts, to check how well the refinement is proceeding.
29 If a white point relative match is being created (refine -R), then
30 use veryify -N.<br>
31 <h3>Usage Summary</h3>
32 <tt>usage: refine [-options] cietarget ciecurrent [outdevicc]
33 [inabs] outabs</tt><tt><br>
34 </tt><tt>
35 &nbsp;-v&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
36
37
38
39
40
41
42
43
44 Verbose</tt><tt><br>
45 </tt><tt>
46 &nbsp;-c&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
47 Create
48
49
50
51
52
53
54
55
56 initial abstract correction profile</tt><tt><br>
57 </tt><tt>
58 &nbsp;-g&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
59 Don't
60
61
62
63
64
65
66
67
68 impose output device gamut limit</tt><tt><br>
69 </tt><tt> &nbsp;-r res&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set
70 abstract profile clut resolution (default 33)</tt><tt><br>
71 </tt><tt> &nbsp;-d factor&nbsp;&nbsp;&nbsp;&nbsp; Override default
72 damping factor (default 0.950000)</tt><tt><br>
73 </tt><tt>
74 &nbsp;-R&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
75 Aim
76
77
78
79
80
81
82
83
84 for white point relative match rather than absolute</tt><tt><br>
85 </tt><tt> &nbsp;-f [illum]&nbsp;&nbsp;&nbsp; Use Fluorescent
86 Whitening Agent compensation [opt. simulated inst. illum.:</tt><tt><br>
87 </tt><tt>
88 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
89
90
91
92
93
94
95
96
97
98 M0, M1, M2, A, C, D50 (def.), D50M2, D65, F5, F8, F10 or file.sp]</tt><tt><br>
99 </tt><tt> &nbsp;-i illum&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Choose
100 illuminant for computation of CIE XYZ from spectral data &amp;
101 FWA:</tt><tt><br>
102 </tt><tt>
103 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
104
105
106
107
108
109
110
111
112
113 A, C, D50 (def.), D50M2, D65, F5, F8, F10 or file.sp</tt><tt><br>
114 </tt><tt> &nbsp;-o observ&nbsp;&nbsp;&nbsp;&nbsp; Choose CIE
115 Observer for spectral data:</tt><tt><br>
116 </tt><tt>
117 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
118 1931_2,
119
120
121
122
123
124
125
126
127 1964_10, 2015_2 (def.), 2015_10, S&amp;B 1955_2, J&amp;V 1978_2 or
128 file.cmf</tt><tt><br>
129
130
131 </tt><tt>&nbsp;cietarget&nbsp;&nbsp;&nbsp;&nbsp; Target CIE or
132 spectral values, CGATS file (e.g. .ti3)</tt><tt><br>
133 </tt><tt> &nbsp;ciecurrent&nbsp;&nbsp;&nbsp; Actual CIE or spectral
134 values, CGATS file (e.g. .ti3)</tt><tt><br>
135 </tt><tt> &nbsp;[outdevicc]&nbsp;&nbsp; Output device ICC profile to
136 set gamut limit (not used if -g)</tt><tt><br>
137 </tt><tt> &nbsp;[inabs]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Previous
138 abstract correction ICC profile (not used if -c)</tt><tt><br>
139 </tt><tt> &nbsp;outabs&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
140 Created/refined abstract correction ICC profile</tt><br>
141 <h3>Usage Details</h3>
142 <b>refine</b> provides a way of improving the profile accuracy of a
143 proofing system.<br>
144 <br>
145 The <b>-v</b> flag prints out extra information during the
146 checking, and prints each patch value, rather than just a summary.<br>
147 <br>
148 The <b>-c</b> option is used when refine is being used for the
149 first time, and there is no previous abstract profile to continue
150 refining. If <span style="font-weight: bold;">-c</span> is used,
151 then the name of the previous abstract correction profile should not
152 be supplied.<br>
153 <br>
154 If the <b>-g </b>flag indicates that an output device profile is
155 not being supplied, and that corrections should be attempted, even
156 if the colors are outside the devices gamut. Normally an output
157 device profile is supplied, and corrections aren't applied to colors
158 outside the devices gamut, since this will not achieve anything
159 useful, and can distort the results.<br>
160 <br>
161 If the <b>-r </b>parameter overrides the resolution of the CLUT
162 grid used in the abstract profile. By default the value is 33, but
163 other<br>
164 values can be chosen. An odd number is recommended. <br>
165 <br>
166 If the <b>-d </b>parameter sets how aggressively refine should try
167 and correct errors. Normally it will try and exactly compensate for
168 the color errors revealed in comparing the two measurement files,
169 but if the device behaviour is unusual, or not very repeatable, this
170 may result in successive applications of refine making things worse,
171 rather than better. If this is the case, try using a smaller number,
172 such as 0.8, or 0.5.<br>
173 <br>
174 If the <span style="font-weight: bold;">-R</span> flag is used,
175 then refine creates an abstract profile for improving the match of
176 the patch values when&nbsp; interpreted in a white point relative
177 (ie. Relative Colorimetric) intent. If used to create a corrected
178 device link profile using <a href="collink.html">collink</a>,
179 remember to create a Relative colorimetric intent device link
180 profile.<br>
181 <br>
182 The <b>-f</b> flag enables Fluorescent Whitening Agent (FWA)
183 compensation. This only works if spectral data is available and, the
184 instrument is not UV filtered.&nbsp; FWA compensation adjusts the
185 spectral samples so that they appear to have been measured using an
186 illuminant that has a different level of Ultra Violet to the one the
187 instrument actually used in the measurement. The optional
188 illumination parameter allows specifying a standard or custom
189 illumination spectrum to be used as the similated instrument
190 illuminant, overriding the default <b>D50</b> or CIE computation
191 illuminant used for FWA (see <b>-i</b> below<b>). </b>See <a
192 href="colprof.html#f">colprof -f</a> for a fuller explanation. The
193 same value should be used as was used during the creation of the
194 profile.<br>
195 <br>
196 The <b>-i</b> flag allows specifying a standard or custom
197 illumination spectrum, applied to the spectral test point values to
198 compute CIE tristimulus values. <b>A</b>, <b>D50</b>, <b>D50M2,
199 D65</b>, <b>F5</b>, <b>F8</b>, <b>F10</b> are a selection of
200 standard illuminant spectrums, with <b>D50</b> being the default.
201 If a filename is specified instead, it will be assumed to be an
202 Argyll specific <a href="File_Formats.html#.sp">.sp</a> spectrum
203 file. If FWA compensation is used during measurement, this
204 illuminant will be used by default as the simulated instrument
205 illuminant. The same value should be used as was used during the
206 creation of the profile.<br>
207 <br>
208 The <b>-o</b> flag allows specifying a tristimulus observer, and is
209 used to compute CIE tristimulus values. The following choices are
210 available:<br>
211 <b>&nbsp; 1931_2</b> selects the standard CIE 1931 2 degree
212 observer.<br>
213 &nbsp; <b>1964_10</b> selects the standard CIE 1964 10 degree
214 observer.<br>
215 <b>&nbsp; 2015_2</b> selects the standard CIE 2015 2 degree observer<br>
216 &nbsp; <b>2015_10</b> selects the standard CIE 2015 10 degree
217 observer<br>
218 &nbsp; <b>1955_2</b> selects the Stiles and Birch 1955 2 degree
219 observer<br>
220 &nbsp; <b>1978_2 </b>selects the Judd and Voss 1978 2 degree
221 observer<br>
222 &nbsp; <b>shaw</b> selects the Shaw and Fairchild 1997 2 degree
223 observer<br>
224 &nbsp; <i><b>file.cmf</b></i> selects an observer specified by the
225 given <a href="File_Formats.html#.cmf">.cmf</a> file.<br>
226 <br>
227
228
229 If both CIE and spectral values are present in the input files, the
230 CIE values will be used by default. Using the <span
231 style="font-weight: bold;">-i</span>, <span style="font-weight:
232 bold;">-o</span> or <span style="font-weight: bold;">-f</span>
233 flag will force spectral values to be used. The the <span
234 style="font-weight: bold;">-i</span>, <span style="font-weight:
235 bold;">-o</span> or <span style="font-weight: bold;">-f</span>
236 flags will apply to both the target and measured input files.<br>
237 <br>
238 <span style="font-style: italic; font-weight: bold;">cietarget</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
239 Is
240
241
242
243
244
245
246
247
248 the filename of the target CIE or spectral values. This is a <a
249 href="File_Formats.html#CGATS">CGATS</a> file (e.g. a <a
250 href="File_Formats.html#.ti3">.ti3</a> made using <a
251 href="chartread.html">chartread</a>). These are the color values
252 wanted for each patch in the test chart, typically the product of
253 the target print system.<br>
254 <br>
255 <span style="font-style: italic; font-weight: bold;">ciecurrent</span>
256 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Is the filename of the
257 actual, current measured CIE or spectral values. This is a <a
258 href="File_Formats.html#CGATS">CGATS</a> file (e.g. a <a
259 href="File_Formats.html#.ti3">.ti3</a> made using <a
260 href="chartread.html">chartread</a>). The errors between these
261 patches and the patches in the <span style="font-style: italic;
262 font-weight: bold;">cietarget</span> file will be used to create a
263 correction profile.<br>
264 <br>
265 &nbsp;[<span style="font-style: italic; font-weight: bold;">outdevicc</span>]&nbsp;&nbsp;&nbsp;&nbsp;
266 If
267
268
269
270
271
272
273
274
275 the <span style="font-weight: bold;">-g</span> flag is not used,
276 then the output device ICC profile should be supplied here, to allow
277 <span style="font-weight: bold;">refine</span> to limit its
278 corrections to colors that are within the gamut of the device.<br>
279 <br>
280 &nbsp;[<span style="font-weight: bold; font-style: italic;">inabs</span>]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
281 After
282
283
284
285
286
287
288
289
290 the first correction has been created, subsequent corrections need
291 to improve upon previous ones, so the previous correction profile
292 should be provided here. For the first correction, the <span
293 style="font-weight: bold;">-c</span> flag should be used, and this
294 argument is omitted.<br>
295 <br>
296 &nbsp;<span style="font-weight: bold; font-style: italic;">outabs</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
297 The
298
299
300
301
302
303
304
305
306 name of the created or refined abstract correction ICC profile<br>
307 <br>
308 <h3> Discussion</h3>
309 <span style="font-weight: bold;">Refine</span> is typically used in
310 a proofing situation, in which a verification chart is being used to
311 check the accuracy of a proofing system. (It might also be used for
312 more arbitrary color alterations by created two test chart files by
313 hand.) By using the errors between the target chart and the measured
314 values, refine attempts to improve the match between the proofing
315 system and its target.<br>
316 <br>
317 There is facility in <a href="collink.html">collink</a>, <a
318 href="colprof.html">colprof</a> and <a href="revfix.html">revfix</a>
319 to incorporate an abstract profile. <br>
320 <br>
321 For systems using two device profiles or a device link to convert
322 between the target space printing files and the proofing device
323 space, the following would be a typical scenario:<br>
324 <br>
325 <div style="margin-left: 40px;">We have a reference set of test
326 chart values, read from the target system <span
327 style="font-weight: bold;">reference.ti3</span>. The ICC profile
328 for the target system is <span style="font-weight: bold;">target.icm</span>.
329 The ICC profile for the proofing system is <span
330 style="font-weight: bold;">proofer.icm</span>. If using a device
331 link, the device link used to print proofer test charts is
332 currently <span style="font-weight: bold;">target_proofer.icm</span>:<br>
333 <br>
334 <br>
335 First we print the test chart out on the proofing system and read
336 it in, resulting in a <span style="font-weight: bold;">chart1.ti3</span>
337 file.<br>
338 <br>
339 Lets check how well the proofing system current matches using
340 colverify:<br>
341 <br>
342 &nbsp;&nbsp;&nbsp; colverify&nbsp; reference.ti3 chart1.ti3<br>
343 <br>
344 We then create our initial abstract correction fix profile <span
345 style="font-weight: bold;">fix1.icm</span> using refine:<br>
346 <br>
347 &nbsp;&nbsp;&nbsp; refine -v -c&nbsp; reference.ti3 chart1.ti3
348 proofer.icm fix1.icm<br>
349 <br>
350 Applying this to your process for creating the proofer device
351 profile or target to proofing device link (choose one of the three
352 options below, depending whether you are using the proofer profile
353 and just want to alter its colorimetric B2A table using <span
354 style="font-weight: bold;">revfix</span>, whether you are going
355 to recreate the proofer file from the original measurement data
356 using&nbsp; <span style="font-weight: bold;">colprof</span>, or
357 whether you are using a device link profile created using <span
358 style="font-weight: bold;">collink</span>):<br>
359 <br>
360 &nbsp;&nbsp;&nbsp; revfix -v -1 -ke -p fix1.icm proofer.icm
361 proofer_fix1.icm<br>
362 or<br>
363 &nbsp;&nbsp;&nbsp; copy proofer.ti3 proofer_fix1.ti3<br>
364 &nbsp;&nbsp;&nbsp; colprof -v -p fix1.icm proofer_fix1<br>
365 or<br>
366 &nbsp;&nbsp;&nbsp; collink -v -s -ia -oa -p fix1.icm target.icm
367 proofer.icm target_proofer_fix1.icm<br>
368 <br>
369 Note that the above example is a simple one - you should use all
370 the same options as you used to create your initial <span
371 style="font-weight: bold;"><span style="font-weight: bold;"></span>proofer.icm&nbsp;
372
373
374
375
376
377
378
379
380 </span>or <span style="font-weight: bold;">target_proofer.icm</span>,
381 with the addition of the "-p fix1.icm" option to specify the
382 abstract correction profile be applied.<br>
383 <br>
384 Use the <span style="font-weight: bold;">proofer_fix1.icm</span>
385 or <span style="font-weight: bold;">target_proofer_fix1.icm</span>
386 to print out the test chart again, and read it in, resulting in <span
387 style="font-weight: bold;">chart2.ti3</span> file.<br>
388 <br>
389 Lets check how well the proofing system matches after this first
390 round of refinement using colverify:<br>
391 <br>
392 &nbsp;&nbsp;&nbsp; colverify&nbsp; reference.ti3 chart2.ti3<br>
393 <br>
394 <br>
395 <span style="font-weight: bold;"><span style="font-weight: bold;">&gt;&gt;&gt;</span></span><br>
396 <span style="font-weight: bold;"><span style="font-weight: bold;"></span></span><br>
397 <span style="font-weight: bold;"><span style="font-weight: bold;">&nbsp;</span></span>We
398 can
399
400
401
402
403
404
405
406
407 then start another round of improvement:<br>
408 <br>
409 We refine our previous abstract correction fix profile using
410 refine:<br>
411 <br>
412 &nbsp;&nbsp;&nbsp; refine -v&nbsp; reference.ti3 chart2.ti3
413 proofer.icm fix1.icm fix2.icm<br>
414 <br>
415 Applying this new abstract profile to our process for creating the
416 proofing device profile or link again:<br>
417 <br>
418 &nbsp;&nbsp;&nbsp; revfix -v -1 -ke -p fix2.icm proofer.icm
419 proofer_fix2.icm<br>
420 or<br>
421 &nbsp;&nbsp;&nbsp; copy proofer.ti3 proofer_fix2.ti3<br>
422 &nbsp;&nbsp;&nbsp; colprof -v -p fix2.icm proofer_fix2<br>
423 or<br>
424 &nbsp;&nbsp;&nbsp; collink -v -s -ia -oa -p fix2.icm target.icm
425 proofer.icm target_proofer_fix2.icm<br>
426 <br>
427 Use the <span style="font-weight: bold;">proofer_fix2.icm</span>
428 or <span style="font-weight: bold;">target_proofer_fix2.icm</span>
429 to print out the test chart again, and read it in, resulting in <span
430 style="font-weight: bold;">chart3.ti3</span> file.<br>
431 <br>
432 Check again how well the proofing system matches after this first
433 round of refinement using colverify:<br>
434 <br>
435 &nbsp;&nbsp;&nbsp; colverify&nbsp; reference.ti3 chart3.ti3<br>
436 <br>
437 Rounds of improvements can be continues by looping back to <span
438 style="font-weight: bold;">&gt;&gt;&gt;</span>, being careful to
439 increment the names of the <span style="font-weight: bold;">fixN.icm</span>,&nbsp;
440
441
442
443
444
445
446
447
448 <span style="font-weight: bold;">proofer_fixN.icm</span> or <span
449 style="font-weight: bold;">target_proofer_fixN.icm</span> and <span
450 style="font-weight: bold;">chartN.ti3</span>files. Stop when
451 exhausted, or if it looks like things are getting worse, rather
452 than better. If the latter happens, it might be good to revert to
453 the results from a previous round.<br>
454 </div>
455 <br>
456 <br>
457 <br>
458 <br>
459 <br>
460 <br>
461 <br>
462 </body>
463 </html>