| 1 |
greg |
1.1 |
.TH NORMTIFF 1 2/25/99 RADIANCE |
| 2 |
|
|
.SH NAME |
| 3 |
greg |
1.2 |
normtiff - tone-map and convert RADIANCE picture or HDR TIFF to standard TIFF |
| 4 |
greg |
1.1 |
.SH SYNOPSIS |
| 5 |
|
|
.B normtiff |
| 6 |
|
|
[ |
| 7 |
|
|
.B options |
| 8 |
|
|
] |
| 9 |
|
|
.B input |
| 10 |
|
|
.B output.tif |
| 11 |
|
|
.SH DESCRIPTION |
| 12 |
|
|
.I Normtiff |
| 13 |
greg |
1.2 |
prepares a Radiance picture or high dynamic-range TIFF |
| 14 |
greg |
1.1 |
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 |
greg |
1.2 |
If the input is neither a RADIANCE picture nor a high dynamic-range TIFF, |
| 37 |
greg |
1.1 |
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 |
greg |
1.2 |
If the input is a grayscale TIFF, this switch is |
| 47 |
greg |
1.1 |
automatically selected. |
| 48 |
|
|
Otherwise, the output defaults to 24-bit RGB. |
| 49 |
|
|
.TP |
| 50 |
|
|
.BR -h |
| 51 |
|
|
Mimic human visual response in the output. |
| 52 |
|
|
The goal of this process is to produce output that correlates |
| 53 |
|
|
strongly with a person's subjective impression of a scene. |
| 54 |
|
|
This switch turns on both the |
| 55 |
|
|
.I \-s |
| 56 |
|
|
and |
| 57 |
|
|
.I \-c |
| 58 |
|
|
switches, described below. |
| 59 |
|
|
.TP |
| 60 |
|
|
.BR -s |
| 61 |
|
|
Toggle the use of the human contrast sensitivity function in determining the |
| 62 |
|
|
exposure for the image. |
| 63 |
|
|
A darker scene will have relatively lower exposure with lower |
| 64 |
|
|
contrast than a well-lit scene. |
| 65 |
|
|
.TP |
| 66 |
|
|
.BR -c |
| 67 |
|
|
Toggle mesopic color correction. |
| 68 |
|
|
If parts of the image are in the mesopic or scotopic range where |
| 69 |
|
|
the cone photoreceptors lose their efficiency, this switch will |
| 70 |
|
|
cause a corresponding loss of color visibility in the output and a |
| 71 |
|
|
shift to a scotopic (blue-dominant) response function. |
| 72 |
|
|
.TP |
| 73 |
|
|
.BR -l |
| 74 |
|
|
Toggle the use of a linear response function versus the standard dynamic |
| 75 |
|
|
range compression algorithm. |
| 76 |
|
|
This may make some parts of the resulting image too |
| 77 |
|
|
dark or too bright to see. |
| 78 |
|
|
.TP |
| 79 |
|
|
.BI -u \ Ldmax |
| 80 |
|
|
Specifies the top of the luminance range for the target output device. |
| 81 |
|
|
That is, the luminance (in candelas/m^2) for an output pixel value |
| 82 |
|
|
of (R,G,B)=(255,255,255). |
| 83 |
|
|
This parameter affects tone mapping only when the |
| 84 |
|
|
.I \-s |
| 85 |
|
|
switch is on. |
| 86 |
|
|
The default value is 100 cd/m^2. |
| 87 |
|
|
.TP |
| 88 |
|
|
.BI -d \ Lddyn |
| 89 |
|
|
Specifies the dynamic range for the target output device, which is |
| 90 |
|
|
the ratio of the maximum and minimum usable display luminances. |
| 91 |
|
|
The default value is 32, which is typical for CRT monitors. |
| 92 |
|
|
.TP |
| 93 |
|
|
.BI -p " xr yr xg yg xb yb xw yw" |
| 94 |
|
|
Specifies the RGB primaries for the target output device. |
| 95 |
|
|
These are the 1931 CIE (x,y) chromaticity values for red, green, |
| 96 |
|
|
blue and white, respectively. |
| 97 |
|
|
.TP |
| 98 |
|
|
.BI -g \ gamma |
| 99 |
|
|
Specifies the output device gamma correction value. |
| 100 |
|
|
The default value is 2.2, which is appropriate for most CRT monitors. |
| 101 |
|
|
(A value of 1.8 is common in color prepress and color printers.)\0 |
| 102 |
|
|
.SH EXAMPLES |
| 103 |
|
|
To convert a RADIANCE picture to an 8-bit grayscale TIFF: |
| 104 |
|
|
.IP "" .2i |
| 105 |
|
|
normtiff -b scene.pic sceneb.tif |
| 106 |
|
|
.PP |
| 107 |
greg |
1.2 |
To condition a high dynamic-range TIFF for a particular film recorder with |
| 108 |
greg |
1.1 |
known color primaries, dynamic range and gamma response: |
| 109 |
|
|
.IP "" .2i |
| 110 |
|
|
pcond -d 50 -g 2.5 -p .580 .340 .281 .570 .153 .079 .333 .333 orig.tif filmrgb.tif |
| 111 |
|
|
.PP |
| 112 |
|
|
To simulate human visual response on a monitor with known maximum luminance: |
| 113 |
|
|
.IP "" .2i |
| 114 |
|
|
normtiff -h -u 80 scene.pic sceneh.tif |
| 115 |
|
|
.SH REFERENCE |
| 116 |
|
|
Greg Ward Larson, Holly Rushmeier, Christine Piatko, |
| 117 |
|
|
``A Visibility Matching Tone Reproduction Operator for High Dynamic Range |
| 118 |
|
|
Scenes,'' |
| 119 |
|
|
.I "IEEE Transactions on Visualization and Computer Graphics", |
| 120 |
|
|
December 1997. |
| 121 |
|
|
.PP |
| 122 |
|
|
http://positron.cs.berkeley.edu/gwlarson/pixformat/ |
| 123 |
|
|
.SH AUTHOR |
| 124 |
|
|
Greg Ward Larson |
| 125 |
|
|
.SH ACKNOWLEDGMENT |
| 126 |
|
|
This work was supported by Silicon Graphics, Inc. |
| 127 |
|
|
.SH "SEE ALSO" |
| 128 |
|
|
getinfo(1), pcond(1), pflip(1), |
| 129 |
|
|
pvalue(1), protate(1), ra_xyze(1), rpict(1), ximage(1) |