| 1 | .TH NORMTIFF 1 2/25/99 RADIANCE | 
| 2 | .SH NAME | 
| 3 | normtiff - tone-map and convert RADIANCE picture or HDR TIFF to standard TIFF | 
| 4 | .SH SYNOPSIS | 
| 5 | .B normtiff | 
| 6 | [ | 
| 7 | .B options | 
| 8 | ] | 
| 9 | .B input | 
| 10 | .B output.tif | 
| 11 | .SH DESCRIPTION | 
| 12 | .I Normtiff | 
| 13 | prepares a Radiance picture or high dynamic-range TIFF | 
| 14 | for output to a display or hard copy device. | 
| 15 | If the dynamic range of the scene exceeds that of the display (as is | 
| 16 | usually the case), | 
| 17 | .I normtiff | 
| 18 | will compress the dynamic range of the picture such that both | 
| 19 | dark and bright regions are visible. | 
| 20 | In addition, certain limitations in human vision may be mimicked in | 
| 21 | order to provide an appearance similar to the experience one might | 
| 22 | have in the actual scene. | 
| 23 | .PP | 
| 24 | Output is always an uncompressed RGB TIFF, which must be named | 
| 25 | on the command line along with the input file. | 
| 26 | If the input file has a ".tif" or ".tiff" extension, | 
| 27 | .I normtiff | 
| 28 | attempts to read it as a TIFF. | 
| 29 | Otherwise, | 
| 30 | .I normtiff | 
| 31 | first tries opening it as a RADIANCE picture, only opening it | 
| 32 | as a TIFF if it fails header inspection. | 
| 33 | (See the | 
| 34 | .I getinfo(1) | 
| 35 | program.)\0 | 
| 36 | If the input is neither a RADIANCE picture nor a high dynamic-range TIFF, | 
| 37 | the program reports an error and exits. | 
| 38 | .PP | 
| 39 | The following command line options are understood. | 
| 40 | Since this program is very similar to | 
| 41 | .I pcond(1), | 
| 42 | several of the switches are identical. | 
| 43 | .TP 10n | 
| 44 | .BR -b | 
| 45 | Toggle 8-bit black and white (grayscale) TIFF output. | 
| 46 | If the input is a grayscale TIFF, this switch is | 
| 47 | automatically selected. | 
| 48 | Otherwise, the output defaults to 24-bit RGB. | 
| 49 | .TP | 
| 50 | .BR -z | 
| 51 | Output LZW-compressed TIFF (smaller file). | 
| 52 | .TP | 
| 53 | .BR -h | 
| 54 | Mimic human visual response in the output. | 
| 55 | The goal of this process is to produce output that correlates | 
| 56 | strongly with a person's subjective impression of a scene. | 
| 57 | This switch turns on both the | 
| 58 | .I \-s | 
| 59 | and | 
| 60 | .I \-c | 
| 61 | switches, described below. | 
| 62 | .TP | 
| 63 | .BR -s | 
| 64 | Toggle the use of the human contrast sensitivity function in determining the | 
| 65 | exposure for the image. | 
| 66 | A darker scene will have relatively lower exposure with lower | 
| 67 | contrast than a well-lit scene. | 
| 68 | .TP | 
| 69 | .BR -c | 
| 70 | Toggle mesopic color correction. | 
| 71 | If parts of the image are in the mesopic or scotopic range where | 
| 72 | the cone photoreceptors lose their efficiency, this switch will | 
| 73 | cause a corresponding loss of color visibility in the output and a | 
| 74 | shift to a scotopic (blue-dominant) response function. | 
| 75 | .TP | 
| 76 | .BR -l | 
| 77 | Toggle the use of a linear response function versus the standard dynamic | 
| 78 | range compression algorithm. | 
| 79 | This may make some parts of the resulting image too | 
| 80 | dark or too bright to see. | 
| 81 | .TP | 
| 82 | .BI -u \ Ldmax | 
| 83 | Specifies the top of the luminance range for the target output device. | 
| 84 | That is, the luminance (in candelas/m^2) for an output pixel value | 
| 85 | of (R,G,B)=(255,255,255). | 
| 86 | This parameter affects tone mapping only when the | 
| 87 | .I \-s | 
| 88 | switch is on. | 
| 89 | The default value is 100 cd/m^2. | 
| 90 | .TP | 
| 91 | .BI -d \ Lddyn | 
| 92 | Specifies the dynamic range for the target output device, which is | 
| 93 | the ratio of the maximum and minimum usable display luminances. | 
| 94 | The default value is 32, which is typical for CRT monitors. | 
| 95 | .TP | 
| 96 | .BI -p " xr yr xg yg xb yb xw yw" | 
| 97 | Specifies the RGB primaries for the target output device. | 
| 98 | These are the 1931 CIE (x,y) chromaticity values for red, green, | 
| 99 | blue and white, respectively. | 
| 100 | .TP | 
| 101 | .BI -g \ gamma | 
| 102 | Specifies the output device gamma correction value. | 
| 103 | The default value is 2.2, which is appropriate for most CRT monitors. | 
| 104 | (A value of 1.8 is common in color prepress and color printers.)\0 | 
| 105 | .SH EXAMPLES | 
| 106 | To convert a RADIANCE picture to an 8-bit grayscale TIFF: | 
| 107 | .IP "" .2i | 
| 108 | normtiff -b scene.pic sceneb.tif | 
| 109 | .PP | 
| 110 | To condition a high dynamic-range TIFF for a particular film recorder with | 
| 111 | known color primaries, dynamic range and gamma response: | 
| 112 | .IP "" .2i | 
| 113 | pcond -d 50 -g 2.5 -p .580 .340 .281 .570 .153 .079 .333 .333 orig.tif filmrgb.tif | 
| 114 | .PP | 
| 115 | To simulate human visual response on a monitor with known maximum luminance: | 
| 116 | .IP "" .2i | 
| 117 | normtiff -h -u 80 scene.pic sceneh.tif | 
| 118 | .SH REFERENCE | 
| 119 | Greg Ward Larson, Holly Rushmeier, Christine Piatko, | 
| 120 | ``A Visibility Matching Tone Reproduction Operator for High Dynamic Range | 
| 121 | Scenes,'' | 
| 122 | .I "IEEE Transactions on Visualization and Computer Graphics", | 
| 123 | December 1997. | 
| 124 | .PP | 
| 125 | http://positron.cs.berkeley.edu/gwlarson/pixformat/ | 
| 126 | .SH AUTHOR | 
| 127 | Greg Ward Larson | 
| 128 | .SH ACKNOWLEDGMENT | 
| 129 | This work was supported by Silicon Graphics, Inc. | 
| 130 | .SH "SEE ALSO" | 
| 131 | getinfo(1), pcond(1), pflip(1), | 
| 132 | pvalue(1), protate(1), ra_xyze(1), rpict(1), ximage(1) |