| 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
| 2 | <html> |
| 3 | <head> |
| 4 | <title>fakeread</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/fakeread</b></h2> |
| 11 | <h3>Summary</h3> |
| 12 | Simulate the measurement of a devices response, using an existing |
| 13 | device profile, or measured test point data set. The device profile |
| 14 | can be either an <a href="File_Formats.html#ICC">ICC</a> or <a |
| 15 | href="File_Formats.html#MPP">MPP</a> profile, or the data set can |
| 16 | be a <a href="File_Formats.html#.ti3">.ti3</a> file. A device link |
| 17 | separation or color space conversion can be applied before the |
| 18 | print/measure simulation, as well as device calibration or |
| 19 | inverse calibration curves.<br> |
| 20 | <br> |
| 21 | <b>fakeread</b> can be useful for creating a data set from an |
| 22 | existing profile to re-create a different style of profile (i.e. |
| 23 | create a cLUT profile from a matrix profile), for creating synthetic |
| 24 | data sets with known amounts of randomness for testing profile |
| 25 | creation against a perfectly known ideal, or for creating |
| 26 | verification test sets for checking colorimetric colorspace |
| 27 | emulation against.<br> |
| 28 | <br> |
| 29 | The options below are in the order of color processing that fakeread |
| 30 | performs.<br> |
| 31 | <h3>Usage</h3> |
| 32 | <tt>fakeread [-options] <i>profile.[icm|mpp|ti3]</i> <i>inoutfile</i></tt><tt><br> |
| 33 | </tt><tt> -v |
| 34 | [n] |
| 35 | Verbose mode [level]</tt><tt><br> |
| 36 | </tt><tt> -e |
| 37 | flag |
| 38 | Video encode device input to sepration as:</tt><tt><br> |
| 39 | </tt><tt> |
| 40 | n |
| 41 | |
| 42 | |
| 43 | |
| 44 | |
| 45 | |
| 46 | |
| 47 | |
| 48 | |
| 49 | normal 0..1 full range RGB levels (default)</tt><tt><br> |
| 50 | </tt><tt> |
| 51 | t |
| 52 | |
| 53 | |
| 54 | |
| 55 | |
| 56 | |
| 57 | |
| 58 | |
| 59 | |
| 60 | (16-235)/255 "TV" RGB levels</tt><tt><br> |
| 61 | </tt><tt> |
| 62 | 6 |
| 63 | |
| 64 | |
| 65 | |
| 66 | |
| 67 | |
| 68 | |
| 69 | |
| 70 | |
| 71 | Rec601 YCbCr SD (16-235,240)/255 "TV" levels</tt><tt><br> |
| 72 | </tt><tt> |
| 73 | 7 |
| 74 | |
| 75 | |
| 76 | |
| 77 | |
| 78 | |
| 79 | |
| 80 | |
| 81 | |
| 82 | Rec709 1125/60Hz YCbCr HD (16-235,240)/255 "TV" levels</tt><tt><br> |
| 83 | </tt><tt> |
| 84 | 5 |
| 85 | |
| 86 | |
| 87 | |
| 88 | |
| 89 | |
| 90 | |
| 91 | |
| 92 | |
| 93 | Rec709 1250/50Hz YCbCr HD (16-235,240)/255 "TV" levels</tt><tt><br> |
| 94 | </tt><tt> |
| 95 | 2 |
| 96 | |
| 97 | |
| 98 | |
| 99 | |
| 100 | |
| 101 | |
| 102 | |
| 103 | |
| 104 | Rec2020 YCbCr UHD (16-235,240)/255 "TV" levels</tt><tt><br> |
| 105 | </tt><tt> |
| 106 | C |
| 107 | |
| 108 | |
| 109 | |
| 110 | |
| 111 | |
| 112 | |
| 113 | |
| 114 | |
| 115 | Rec2020 Constant Luminance YCbCr UHD (16-235,240)/255 "TV" levels</tt><tt><br> |
| 116 | </tt><tt> -p separation.icm Use device link separation profile |
| 117 | on input</tt><tt><br> |
| 118 | </tt><tt> -E |
| 119 | flag |
| 120 | Video decode separation device output. See -e above</tt><tt><br> |
| 121 | </tt><tt> -Z nbits |
| 122 | Quantize test values to fit in nbits</tt><tt><br> |
| 123 | </tt><tt> -k file.cal |
| 124 | Apply calibration (include in .ti3 output)</tt><tt><br> |
| 125 | </tt><tt> -i file.cal |
| 126 | Include calibration in .ti3 output, but don't apply it</tt><tt><br> |
| 127 | </tt><tt> -K file.cal |
| 128 | Apply inverse calibration</tt><br> |
| 129 | |
| 130 | |
| 131 | <tt> -r |
| 132 | level Add |
| 133 | average random deviation of <level>% to device values (after |
| 134 | sep. & cal.)</tt><tt><br> |
| 135 | </tt><tt> -0 |
| 136 | pow |
| 137 | Apply power to device chanel 0-9</tt><tt><br> |
| 138 | </tt><tt> -B |
| 139 | display.icm |
| 140 | Use BT.1886 source EOTF with technical gamma 2.4</tt><tt><br> |
| 141 | </tt><tt> -b g.g:display.icm Use |
| 142 | BT.1886-like source EOTF with effective gamma g.g</tt><tt><br> |
| 143 | </tt><tt> -b p.p:g.g:display.icm Use effective gamma g.g |
| 144 | source EOTF with p.p prop. output black point offset</tt><tt><br> |
| 145 | </tt><tt> -g g.g:display.icm Use |
| 146 | effective gamma g.g source EOTF with all output black point offset</tt><tt><br> |
| 147 | </tt><tt> -I |
| 148 | intent r = |
| 149 | relative colorimetric, a = absolute (default)</tt><tt><br> |
| 150 | </tt><tt> -A |
| 151 | L,a,b Scale |
| 152 | black point to target Lab value</tt><tt><br> |
| 153 | </tt><tt> |
| 154 | -l |
| 155 | |
| 156 | |
| 157 | |
| 158 | |
| 159 | |
| 160 | |
| 161 | |
| 162 | |
| 163 | Output Lab rather than XYZ</tt><tt><br> |
| 164 | </tt><tt> |
| 165 | -s |
| 166 | |
| 167 | |
| 168 | |
| 169 | |
| 170 | |
| 171 | |
| 172 | |
| 173 | |
| 174 | Lookup </tt><tt><a href="File_Formats.html#MPP">MPP</a></tt><tt> |
| 175 | spectral values</tt><tt><br> |
| 176 | </tt><tt> -R |
| 177 | level Add |
| 178 | average random deviation of <level>% to output PCS values</tt><tt><br> |
| 179 | </tt><tt> |
| 180 | -u |
| 181 | |
| 182 | |
| 183 | |
| 184 | |
| 185 | |
| 186 | |
| 187 | |
| 188 | |
| 189 | Make random deviations have uniform distributions rather than |
| 190 | normal</tt><tt><br> |
| 191 | </tt><tt> -S |
| 192 | seed |
| 193 | Set random seed</tt><tt><br> |
| 194 | </tt><tt> |
| 195 | -U |
| 196 | |
| 197 | |
| 198 | |
| 199 | |
| 200 | Reverse convert PCS to device, output_r.ti3</tt><tt><br> |
| 201 | </tt><tt> <i>profile.[icm|mpp|ti3]</i> </tt><tt><a |
| 202 | href="File_Formats.html#ICC">ICC</a></tt><tt>, </tt><tt><a |
| 203 | href="File_Formats.html#MPP">MPP</a></tt><tt> or </tt><tt><a |
| 204 | href="File_Formats.html#.ti3">.ti3</a></tt><tt> profile/file to |
| 205 | use</tt><tt><br> |
| 206 | </tt><tt> <i>inoutfile</i> |
| 207 | |
| 208 | |
| 209 | |
| 210 | |
| 211 | |
| 212 | |
| 213 | |
| 214 | |
| 215 | |
| 216 | |
| 217 | |
| 218 | |
| 219 | Base name for input[</tt><tt><a |
| 220 | href="File_Formats.html#.ti1">.ti1</a></tt><tt>]/output[</tt><tt><a |
| 221 | href="File_Formats.html#.ti3">.ti3</a></tt><tt>] file</tt><tt><br> |
| 222 | </tt><tt> </tt><b><br> |
| 223 | Examples</b><br> |
| 224 | <br> |
| 225 | fakeread profile.icm testvalues<br> |
| 226 | fakeread -p separation.icm profile.icm testvalues<br> |
| 227 | <h3>Comments<br> |
| 228 | </h3> |
| 229 | <a name="v"></a>The <span style="font-weight: bold;">-v</span> flag |
| 230 | reports extra information, e.g. on what BT.1886 option is doing. A |
| 231 | level > 1 will be more verbose.<br> |
| 232 | <br> |
| 233 | <a name="e"></a>The <b>-e</b> <i>flag</i> applies a Video encoding |
| 234 | to the input of the separation.<small><small><br> |
| 235 | <br> |
| 236 | |
| 237 | n |
| 238 | normal 0..1 full range RGB levels (default)<br> |
| 239 | |
| 240 | t |
| 241 | (16-235)/255 "TV" RGB levels<br> |
| 242 | |
| 243 | 6 |
| 244 | Rec601 YCbCr SD (16-235,240)/255 "TV" levels<br> |
| 245 | |
| 246 | 7 |
| 247 | Rec709 1125/60Hz YCbCr HD (16-235,240)/255 "TV" levels<br> |
| 248 | |
| 249 | 5 |
| 250 | Rec709 1250/50Hz YCbCr HD (16-235,240)/255 "TV" levels<br> |
| 251 | |
| 252 | 2 |
| 253 | Rec2020 YCbCr UHD (16-235,240)/255 "TV" levels<br> |
| 254 | |
| 255 | C |
| 256 | Rec2020 Constant Luminance YCbCr UHD (16-235,240)/255 "TV" lev</small></small><br> |
| 257 | <br> |
| 258 | <a name="p"></a>The <span style="font-weight: bold;">-p</span> <b><i>separation.icm</i></b> |
| 259 | option enables a device to device value conversion before converting |
| 260 | to expected PCS values. This might be an ink separation of a video |
| 261 | calibration device link. The argument is the name of the ICC device |
| 262 | link that defines the separation.<br> |
| 263 | <br> |
| 264 | <a name="E"></a>The <b>-E</b> <i>flag</i> applies a Video decoding |
| 265 | to the output of the separation.<small><small> </small></small>See |
| 266 | |
| 267 | |
| 268 | |
| 269 | |
| 270 | |
| 271 | |
| 272 | |
| 273 | |
| 274 | <a href="#e"><b>-e</b></a> for the list of decodings. Setting a |
| 275 | video encoding for output will also set quantization of 8 bits (see |
| 276 | -Z flag below). If your video connection is better than 8 bits (ie. |
| 277 | 10 or 12 bits), then you may wish to raise this default.<br> |
| 278 | <br> |
| 279 | <a name="Z"></a> <b>-Z nbits </b>Normally the target device values |
| 280 | are floating point numbers that may get rounded and quantized in the |
| 281 | process of printing them or reproducing them on the display device. |
| 282 | If some of this quantization can be accounted for, it may improve |
| 283 | the accuracy of the resulting profile, and the <span |
| 284 | style="font-weight: bold;">Q</span> parameter allows this |
| 285 | quantization to be specified. The parameter is the number of binary |
| 286 | digits (bits) that the device values should be quantized to. An idea |
| 287 | of the number of bits of precision that makes its way to your |
| 288 | display can be obtained by using <a href="dispcal.html#R">dispcal |
| 289 | -R</a> If Video encoding is selected (see -E flag above), then 8 |
| 290 | bits is selected by default. On systems using an VGA connection or |
| 291 | Display Port with a graphics card with VideoLUT entries with greater |
| 292 | than 8 bits depth, or if using the MadVR rendered with dithering, |
| 293 | then a higher bit depth is typically possible.<br> |
| 294 | <br> |
| 295 | <a name="k"></a>The <b>-k file.cal</b> parameter specifies a |
| 296 | calibration file created by <a href="printcal.html">printcal</a> or |
| 297 | <a href="dispcal.html">dispcal</a>, and the supplied calibration |
| 298 | curves will be applied to the chart device values after any |
| 299 | separation and before the device profile. This allows emulating a |
| 300 | system that uses per device channel calibration. The calibration |
| 301 | curves will also be included in the resulting .ti3 file, so that |
| 302 | they can be passed through to the ICC profile allowing accurate |
| 303 | computation of ink limits.<br> |
| 304 | <br> |
| 305 | <a name="i"></a> The <b>-i file.cal</b> parameter specifies a |
| 306 | printer calibration file created by <a href="printcal.html">printcal</a> |
| 307 | or <a href="dispcal.html">dispcal</a>, and the calibration curves |
| 308 | will be included in the included in the resulting .ti3 file, so that |
| 309 | they can be passed through to the ICC profile, to allow accurate |
| 310 | computation of ink limits. The calibration <span |
| 311 | style="font-weight: bold;">is not applied</span> to tchart values. |
| 312 | <span style="font-weight: bold;">Note</span> that if the supplied |
| 313 | ICC profile contains VCGT calibration curves, that these will be |
| 314 | included in the resulting .ti3 by default.<br> |
| 315 | <br> |
| 316 | <a name="K"></a>The <b>-K</b> <b>file.cal</b> parameter specifies |
| 317 | a calibration file created by <a href="printcal.html">printcal</a> |
| 318 | or <a href="dispcal.html">dispcal</a>, and the inverse of the |
| 319 | supplied calibration curves will be applied to the chart device |
| 320 | values after any separation and before the device profile. This |
| 321 | allows for undoing calibration curves that may be part of a video |
| 322 | calibration device link, so that the (calibrated device value) |
| 323 | device profile will work as expected.<br> |
| 324 | |
| 325 | |
| 326 | <br> |
| 327 | <a name="r"></a>The <span style="font-weight: bold;">-r</span> |
| 328 | parameter is a way of simulating instability in the behaviour of the |
| 329 | simulated printing system. The parameter supplied to the flag will |
| 330 | be used to scale a random offset added to the device values (after |
| 331 | any separation and calibration is applied). The offset will be a |
| 332 | normally distributed error with an average deviation of level%. A |
| 333 | typically value supplied might be 1.0 to simulate 1% randomness.<br> |
| 334 | <br> |
| 335 | <a name="0"></a>The <span style="font-weight: bold;">-0, -1, -2 .. |
| 336 | -9</span> parameters are a way of simulating changes in the |
| 337 | behavior of the simulated printing system. The parameter supplied to |
| 338 | the flag will be used to modify the device values (after any |
| 339 | separation, calibration and device randomness is applied) by raising |
| 340 | them to the power of the parameter. This applies a transfer curve to |
| 341 | the simulated device response.<br> |
| 342 | <br> |
| 343 | <b><a name="b"></a></b>The <b>-[b|B|g|G] [p.p:][g.g:]</b><b>display.icm</b> |
| 344 | series of options, substitutes an alternative EOTF (Electro-Optical |
| 345 | Transfer Function) for the one specified by the matrix input |
| 346 | profile. <b>display.icm</b> is the display ICC profile that |
| 347 | provides the black point that the gamma curve curves will target. |
| 348 | Typically these options will be used to create a verification test |
| 349 | set for checking the operation of a device link or 3dLut created |
| 350 | using <a href="collink.html">collink</a>, using the same gamma |
| 351 | curve parameters. See <a href="collink.html#Ib">collink -I b</a> |
| 352 | for a full explanation of these parameters, and <a |
| 353 | href="Scenarios.html#TV2">Verifying Video Calibration</a> for more |
| 354 | detail.<br> |
| 355 | <br> |
| 356 | <a name="I"></a>The <span style="font-weight: bold;">-I</span> |
| 357 | parameter allows changing the intent used in looking up the ICC |
| 358 | profile colors to relative colorimetric. This would <span |
| 359 | style="text-decoration: underline;">not</span> be used if you |
| 360 | intend to make a profile from the resulting .ti3 file, since |
| 361 | profiles are always made from absolute colorimetric measurement |
| 362 | values. Note that this flag does nothing if the profile is an MPP or |
| 363 | .ti3 file.<br> |
| 364 | <span style="font-weight: bold;"></span><br> |
| 365 | <a name="A"></a>The <span style="font-weight: bold;">-A</span> |
| 366 | parameter is a way of simulating devices that have a different black |
| 367 | point to the profile used. This only works if an ICC profile is |
| 368 | used, and scales the black point to the parameter value. This will |
| 369 | be done in XYZ space by default, and in L*a*b* space if the <a |
| 370 | href="#l"><span style="font-weight: bold;">-l</span></a> flag is |
| 371 | used.<br> |
| 372 | <br> |
| 373 | <a name="l"></a>The <span style="font-weight: bold;">-l</span> flag |
| 374 | causes the CIE output values to be L*a*b* rather than the default |
| 375 | XYZ values.<br> |
| 376 | <br> |
| 377 | <a name="s"></a>The <span style="font-weight: bold;">-s</span> flag |
| 378 | works if a spectral MPP file is being used as a device profile, and |
| 379 | causes the output to include spectral values.<br> |
| 380 | <br> |
| 381 | <a name="R"></a>The <span style="font-weight: bold;">-R</span> |
| 382 | parameter is a way of simulating instability in the behavior of the |
| 383 | simulated measuring system. The parameter supplied to the flag will |
| 384 | be used to scale a random offset added to the PCS values. The offset |
| 385 | will be a normally distributed error with an average deviation of |
| 386 | level%. A typically value supplied might be 1.0 to simulate 1% |
| 387 | randomness. <br> |
| 388 | <br> |
| 389 | <a name="u"></a>The <span style="font-weight: bold;">-u</span> flag |
| 390 | changes the distribution of the random offsets applied using the <span |
| 391 | style="font-weight: bold;">-r</span> or <span style="font-weight: |
| 392 | bold;">-R</span> flags, from the default standard deviation, to a |
| 393 | uniform deviation distribution. The level is still specified as an |
| 394 | average deviation.<br> |
| 395 | <br> |
| 396 | <a name="S"></a>The <span style="font-weight: bold;">-S</span> |
| 397 | parameter lets a particular random seed be used when generating |
| 398 | random offsets, so that the randomness can be made repeatable. |
| 399 | Normally a different seed will be used for each run. <br> |
| 400 | <br> |
| 401 | <a name="U"></a>The <b>-U</b> flag causes fakeread to read <i>inoutfile.ti3</i> |
| 402 | and use a backwards lookup (CIE to device conversion), saving the |
| 403 | result in <i>inoutfile</i>_r.<i>ti3</i>.<br> |
| 404 | <br> |
| 405 | Fakeread is useful in creating artificial test value for testing <a |
| 406 | href="colprof.html">colprof</a>, as well as providing one path for |
| 407 | turning an MPP profile into an ICC profile. It can also be used to |
| 408 | create a reference file for verifying against. If a <a |
| 409 | href="File_Formats.html#.ti3">.ti3</a> file is specified instead |
| 410 | of an <a href="File_Formats.html#ICC">ICC</a> or <a |
| 411 | href="File_Formats.html#MPP">MPP</a> profile, then the closest |
| 412 | matching measured points in the .<a href="File_Formats.html#.ti3">.ti3</a> |
| 413 | are substituted for the test values in the <a |
| 414 | href="File_Formats.html#.ti1">.ti1</a> file on output. If the <a |
| 415 | href="File_Formats.html#.ti1">.ti1</a> file is a monochrome test |
| 416 | file with a White device value, then an RGB <a |
| 417 | href="File_Formats.html#ICC">ICC</a> profile, <a |
| 418 | href="File_Formats.html#MPP">MPP</a> or <a |
| 419 | href="File_Formats.html#.ti3">.ti3</a> may be used, and the White |
| 420 | values will be translated to equal RGB values. If the <a |
| 421 | href="File_Formats.html#.ti1">.ti1</a> file is a monochrome test |
| 422 | file with a Black device value, then a CMYK <a |
| 423 | href="File_Formats.html#ICC">ICC</a> profile, <a |
| 424 | href="File_Formats.html#MPP">MPP</a> or <a |
| 425 | href="File_Formats.html#.ti3">.ti3</a> may be used, and the Black |
| 426 | values will be translated to equal CMY = 0, K = grey values. <span |
| 427 | style="font-weight: bold;">Note</span> that any calibration within |
| 428 | a supplied ICC profile is <span style="text-decoration: underline;">not</span> |
| 429 | applied during the conversion, although it will be included in the |
| 430 | .ti3 output (see <span style="font-weight: bold;">-k</span> and <span |
| 431 | style="font-weight: bold;">-i</span> flags for how apply |
| 432 | calibration curves during the conversion and/or include a specific |
| 433 | calibration curves in the output).<br> |
| 434 | <br> |
| 435 | If a separation device profile is provided (e.g. from CMY -> |
| 436 | CMYK, or perhaps CMYK->CMYK, to simulate a color correction step |
| 437 | before "printing", or perhaps a Video RGB->RGB calibration link) |
| 438 | then this will be applied to the .ti1 device values, before |
| 439 | converting the the device values into .ti3 PCS values.<br> |
| 440 | <br> |
| 441 | Note that a .ti3 file can be renamed to be .ti1 and fakeread will |
| 442 | treat it as if it was a .ti1.<br> |
| 443 | <br> |
| 444 | <br> |
| 445 | <br> |
| 446 | <br> |
| 447 | </body> |
| 448 | </html> |