Debian Codegraph @

doc/spec2cie.html

raw symbols SCIP
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <html>
3 <head>
4 <title>spec2cie</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>spectro/</b><span style="text-decoration: underline;"></span>spec2cie</h2>
11 <h3>Summary</h3>
12 Convert spectral <a href="File_Formats.html#.ti3">.ti3</a> or <a
13 href="File_Formats.html#.sp">.sp</a> readings into CIE XYZ and D50
14 L*a*b* readings. Apply FWA, plot spectrums. Convert to/from XRGA
15 standard.<br>
16 This is assumed to be for a reflective media by default - i.e. that
17 the input .ti3 or .sp file values are spectral reflectances, unless
18 the input is marked as <span style="font-weight: bold;">DEVICE_CLASS</span>&nbsp;
19
20
21
22
23
24
25
26 <span style="font-weight: bold;">EMISINPUT</span> (See the <a
27 href="ti3_format.html">description of the .ti3 format</a>. This
28 would have to be done manually, as no ArgyllCMS tools generate such
29 data.)<br>
30 <h3>Usage</h3>
31 <tt><small>spec2cie [options] <span style="font-style: italic;">input.[ti3|sp]
32
33
34
35
36
37
38
39
40
41
42
43 output.[ti3|sp]<br>
44 &nbsp;</span></small></tt><tt><small>-v
45 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
46
47
48
49
50 Verbose mode<br>
51 &nbsp;<a href="A">-A NN|AX|AG|XA|XG|GA|GX</a>&nbsp;&nbsp; XRGA
52 conversion (default NN)<br>
53 </small></tt> <tt><small><small>&nbsp;<a href="#I">-I <i>illum</i></a>&nbsp;&nbsp;
54
55
56
57
58
59
60
61
62
63
64
65 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
66
67
68
69
70 Override actual instrument illuminant in .ti3 or .sp file:<br>
71 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
72 &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;
73 &nbsp;&nbsp; A, C, D50, D50M2, D65, F5, F8, F10 or file.sp<br>
74 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
75
76
77
78
79 &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; (only used in conjunction
80 with <span style="font-weight: bold;">-f</span>)<br>
81 </small></small></tt><tt><small><small>&nbsp;<a href="#f">-f [<i>illum</i>]</a>
82 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
83
84
85
86
87 Use Fluorescent Whitening Agent compensation [simulated inst.
88 illum.:<br>
89 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
90
91
92
93
94 &nbsp; &nbsp; &nbsp; &nbsp; M0, M1, M2, A, C, D50 (def.),
95 D50M2, D65, F5, F8, F10 or file.sp]<br>
96 </small></small></tt><tt><small><small><small>&nbsp;<a href="#i">-i
97
98
99
100
101 <i>illum</i></a>&nbsp;&nbsp;
102 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
103
104
105
106
107 Choose illuminant for computation of CIE XYZ from spectral
108 data &amp; FWA:<br>
109 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
110 &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;
111 &nbsp; A, C, D50 (def.), D50M2, D65, F5, F8, F10 or file.sp<br>
112 &nbsp;</small></small><a href="#o">-o <i>observ</i></a>&nbsp;
113
114
115
116
117
118
119
120
121
122
123
124 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
125
126
127
128
129 &nbsp; Choose CIE Observer for spectral data:<br>
130 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
131 &nbsp;
132 &nbsp;&nbsp;&nbsp;&nbsp;
133
134
135
136
137 &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; 1931_2 </small></tt><tt><small>
138 (def.)</small></tt><tt><small>, 1964_10, </small></tt><tt><small><tt><small>2015_2,
139
140
141
142 2015_10, </small></tt>S&amp;B 1955_2, shaw, J&amp;V 1978_2
143 or file.cmf<br>
144 &nbsp;<a href="#p">-n</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
145 Don't
146 output
147
148
149
150
151
152
153
154
155
156
157
158 spectral values<br>
159 </small></tt><tt><small>&nbsp;<a href="#p">-p</a>
160 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
161
162
163
164
165
166
167 Plot each values spectrum</small></tt><tt><br>
168 </tt><tt> </tt><tt><small>&nbsp;<span style="font-style: italic;">input.[ti3|sp]</span>
169 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
170 Measurement file<br>
171 &nbsp;<span style="font-style: italic;">output.[ti3</span>|sp]
172 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Converted
173 measurement file</small></tt><br>
174 <h3>Comments</h3>
175 This program takes the (usually reflective) spectral data in a .ti3
176 or .sp file, converts them to XYZ and D50 L*a*b* and fills the
177 XYZ_[XYZ] and LAB_[LAB] columns in the output .ti3 or .sp file. If
178 the columns XYZ_[XYZ] and/or LAB_[LAB] are missing in the input
179 file, they are added to the output file.<br>
180 <br>
181 If FWA correction is applied, then the spectra saved will be FWA
182 corrected, as well as the XYZ and D50 L*a*b* values.<br>
183 <br>
184 All other columns are copied from the input to the output .ti3 or
185 .sp file.<br>
186 <br>
187 Setting an actual instrument/simulated instrument/CIE illuminant
188 only has an effect for reflective/transmissive spectra. Emissive
189 spectra don't have an illuminant, and will simply be converted to
190 XYZ using the given observer. <br>
191 <br>
192 <a name="A"></a>The <b>-A</b> parameter allows specifying a
193 conversion between the <a href="XRGA.html">XRGA</a> measurement
194 standards:<br>
195 <br>
196 &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; The <b>NN</b> argument
197 disabled any conversion.<br>
198 &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; The <b>AX</b> argument
199 converts from XRGA to XRDI<br>
200 &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; The <b>AG</b> argument
201 converts from XRGA to GMDI<br>
202 &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; The <b>XA</b> argument
203 converts from XRDI to XRGA<br>
204 &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; The <b>XG</b> argument
205 converts from XRDI to GMDI<br>
206 &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; The <b>GA</b> argument
207 converts from GMDI to XRGA<br>
208 &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; The <b>GX</b> argument
209 converts from GMDI to XRDI<br>
210 <br>
211 A warning will be issued if the "from" setting doesn't match that
212 contained in the .ti3 file.<br>
213 <br>
214 (XRGA = Modern X-Rite, XRDI = Historical X-Rite, GMD = Historical
215 GretagMacbeth).<br>
216 <br>
217 <a name="I"></a>The <b>-I</b> parameter allows specifying a an
218 illumination spectrum for the actual instrument illuminant,
219 overriding that computed from the type of instrument (recorded in
220 the .ti3 file). This is rarely used. This parameter can only be used
221 in combination with the <span style="font-weight: bold;">-f</span>
222 flag. If a filename is specified instead, it will be assumed to be
223 an Argyll specific <a href="File_Formats.html#.sp">.sp</a> custom
224 spectrum file. Illuminant details are:<br>
225 <br>
226 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; A&nbsp;&nbsp; CIE
227 tungsten filament lamp 2848K<br>
228 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; D50 CIE daylight 5000K<br>
229 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; D65 CIE daylight 6500K<br>
230 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; F5&nbsp; CIE Fluorescent
231 6350K, CRI 72<br>
232 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; F8&nbsp; CIE Fluorescent
233 5000K, CRI 95<br>
234 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; F10 CIE Fluorescent
235 5000K, CRI 81<br>
236 <br>
237 <br>
238 <a name="f"></a> The <b>-f</b> flag enables Fluorescent Whitening
239 Agent (FWA) compensation. This only works if spectral data is
240 available and, the instrument is not UV filtered.&nbsp; FWA
241 compensation adjusts the spectral samples so that they appear to
242 have been measured using an illuminant that has a different level of
243 Ultra Violet to the one the instrument actually used in the
244 measurement. The optional illumination parameter allows specifying a
245 standard or custom illumination spectrum to be used as the similated
246 instrument illuminant, overriding the default <b>D50</b> or CIE
247 computation illuminant used for FWA (see <b>-i</b> below<b>). </b>See
248
249
250
251
252
253
254
255
256
257
258
259 <a href="colprof.html#f">colprof -f</a> for a fuller explanation. <br>
260 <br>
261 <a name="i"></a>The <b>-i</b> parameter allows specifying a
262 standard or custom illumination spectrum, applied to spectral .ti3
263 pr .sp data to compute PCS (Profile Connection Space) tristimulus
264 values. <b>A</b>, <b>D50</b>, <b>D65</b>, <b>F5</b>, <b>F8</b>,
265 <b>F10</b> are a selection of standard illuminant spectrums, with <b>D50</b>
266 being the default. If a filename is specified instead, it will be
267 assumed to be an Argyll specific <a href="File_Formats.html#.sp">.sp</a>
268 custom spectrum file. This only works if spectral data is available.
269 Illuminant details are:<br>
270 <br>
271 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; A&nbsp;&nbsp; CIE
272 tungsten filament lamp 2848K<br>
273 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; D50 CIE daylight 5000K<br>
274 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; D65 CIE daylight 6500K<br>
275 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; F5&nbsp; CIE Fluorescent
276 6350K, CRI 72<br>
277 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; F8&nbsp; CIE Fluorescent
278 5000K, CRI 95<br>
279 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; F10 CIE Fluorescent
280 5000K, CRI 81<br>
281 <br>
282 Custom illuminants are most often used when a&nbsp; viewing booth or
283 other known viewing conditions is going to be used to view results.
284 Other illuminant reference files could be created using a suitable
285 measuring instrument such as a spectrolino, or an eyeone using <a
286 href="spotread.html">spotread</a>, although such instruments do
287 not themselves provide the necessary response down to Ultra Violet
288 that is needed for accurate operation of Fluorescent Whitening Agent
289 compensation. The best way of measuring a custom illuminant is to
290 use <a href="illumread.html">illumread</a>, since it uses a special
291 method to estimate the illuminant UV in a way that complements FWA
292 compensation. (See the discussion above for the <b>-f</b> flag).<br>
293 <br>
294 Note that if an illuminant other than D50 is chosen, the resulting
295 ICC profile will not be standard, and may not work perfectly with
296 other profiles that that use&nbsp; the standard ICC D50 illuminant,
297 particularly if the absolute rendering intent is used. Profiles
298 should generally be linked with other profiles that have the same
299 illuminant and observer.<br>
300 <br>
301 If a non D50 illuminant is used, then an extra set of L*a*b* output
302 fields will be created in the resulting CGATS file, containing
303 values relative to the illuminant white point. These will be
304 labelled XXXLAB_L etc, where XXX is the name of the illuminant.
305 These are informational only, and are not used by any ArgyllCMS
306 tools.<br>
307 <br>
308 <a name="o"></a> The <b>-o</b> flag allows specifying a tristimulus
309 observer, and is used to compute PCS (Profile Connection Space)
310 tristimulus values. The following choices are available:<br>
311 <b>&nbsp; 1931_2</b> selects the standard CIE 1931 2 degree observer
312 (the default).<br>
313 &nbsp; <b>1964_10</b> selects the standard CIE 1964 10 degree
314 observer.<br>
315 <b>&nbsp; 2015_2</b> selects the standard CIE 2015 2 degree observer<br>
316 &nbsp; <b>2015_10</b> selects the standard CIE 2015 10 degree
317 observer<br>
318 &nbsp; <b>1955_2</b> selects the Stiles and Birch 1955 2 degree
319 observer<br>
320 &nbsp; <b>1978_2 </b>selects the Judd and Voss 1978 2 degree
321 observer<br>
322 &nbsp; <b>shaw</b> selects the Shaw and Fairchild 1997 2 degree
323 observer<br>
324 &nbsp; <i><b>file.cmf</b></i> selects an observer specified by the
325 given <a href="File_Formats.html#.cmf">.cmf</a> file.<br>
326 <br>
327 Note that if an observer other than 1931 2 degree is chosen, the
328 resulting ICC profile will not be standard, and cannot be freely
329 interchanged with other profiles that that us the standard 1931 2
330 degree observer. Profiles should only be linked with other profiles
331 that have the same illuminant and observer.<br>
332 <br>
333 <br>
334 <a name="n"></a>The <span style="font-weight: bold;">-n</span> flag
335 disables the output of the spectral values. If just the XYZ and D50
336 L*a*b* values are needed, this makes for a smaller, easier to read
337 file.<br>
338 <br>
339 <a name="p"></a>The <span style="font-weight: bold;">-p</span> flag
340 causes each spectrum to be plotted. If FWA compensation is used,
341 then the before/after compensation spectruma will be shown.<br>
342 <br>
343 <br>
344 <br>
345 <br>
346 <br>
347 <br>
348 </body>
349 </html>