| 1 |
greg |
1.1 |
.\" SCCSid "@(#)ra_tiff.1 2.3 8/29/97 LBL"
|
| 2 |
|
|
.TH RA_TIFF 1 8/29/97 RADIANCE
|
| 3 |
|
|
.SH NAME
|
| 4 |
|
|
ra_tiff - convert RADIANCE picture to/from a TIFF color or greyscale image
|
| 5 |
|
|
.SH SYNOPSIS
|
| 6 |
|
|
.B ra_tiff
|
| 7 |
|
|
[
|
| 8 |
greg |
1.2 |
.B "-z|-L|-l|-f|-w"
|
| 9 |
greg |
1.1 |
][
|
| 10 |
|
|
.B -b
|
| 11 |
|
|
][
|
| 12 |
|
|
.B "-e +/-stops"
|
| 13 |
|
|
][
|
| 14 |
|
|
.B "-g gamma"
|
| 15 |
|
|
]
|
| 16 |
|
|
{
|
| 17 |
greg |
1.6 |
.B "in.hdr|-"
|
| 18 |
greg |
1.1 |
}
|
| 19 |
|
|
.B out.tif
|
| 20 |
|
|
.br
|
| 21 |
|
|
.B "ra_tiff -r"
|
| 22 |
|
|
[
|
| 23 |
|
|
.B \-x
|
| 24 |
|
|
][
|
| 25 |
|
|
.B "\-g gamma"
|
| 26 |
|
|
][
|
| 27 |
|
|
.B "\-e +/-stops"
|
| 28 |
|
|
]
|
| 29 |
|
|
.B in.tif
|
| 30 |
|
|
[
|
| 31 |
greg |
1.6 |
.B "out.hdr|-"
|
| 32 |
greg |
1.1 |
]
|
| 33 |
|
|
.SH DESCRIPTION
|
| 34 |
|
|
.I Ra_tiff
|
| 35 |
|
|
converts between RADIANCE and TIFF image formats.
|
| 36 |
|
|
The
|
| 37 |
|
|
.I \-g
|
| 38 |
|
|
option specifies the exponent used in gamma correction;
|
| 39 |
|
|
the default value is 2.2, which is the recommended value
|
| 40 |
|
|
for TIFF images.
|
| 41 |
|
|
.PP
|
| 42 |
|
|
The
|
| 43 |
|
|
.I \-b
|
| 44 |
|
|
option can be used to specify an 8-bit greyscale TIFF output file.
|
| 45 |
|
|
The type of input file is determined automatically.
|
| 46 |
|
|
.PP
|
| 47 |
|
|
The
|
| 48 |
|
|
.I \-z
|
| 49 |
|
|
option will result in LZW compression of the TIFF output file.
|
| 50 |
|
|
The
|
| 51 |
|
|
.I \-L
|
| 52 |
|
|
option specifies SGILOG compression, which is recommended
|
| 53 |
|
|
to capture the full dynamic range of the Radiance picture.
|
| 54 |
|
|
However, since many TIFF readers do not yet support this format,
|
| 55 |
|
|
use this option under advisement.
|
| 56 |
|
|
The
|
| 57 |
|
|
.I \-l
|
| 58 |
greg |
1.2 |
option specifies SGILOG24 compressed output, which has
|
| 59 |
greg |
1.1 |
less dynamic range than SGILOG, but may be smaller in some cases.
|
| 60 |
greg |
1.2 |
(It is usually larger.)\0
|
| 61 |
|
|
The
|
| 62 |
|
|
.I \-f
|
| 63 |
|
|
option specifies 32-bit IEEE floating-point/primary output, which
|
| 64 |
|
|
is the highest resolution format but results in very large files, since
|
| 65 |
greg |
1.3 |
each RGB pixel takes 96 bits (12 bytes) and does not compress well.
|
| 66 |
greg |
1.2 |
The
|
| 67 |
|
|
.I \-w
|
| 68 |
|
|
option specifies 16-bit/primary output, which is understood by
|
| 69 |
|
|
some photo editing software, such as Adobe Photoshop.
|
| 70 |
greg |
1.1 |
Decompression is automatically determined for TIFF input.
|
| 71 |
|
|
.PP
|
| 72 |
|
|
The
|
| 73 |
|
|
.I \-e
|
| 74 |
|
|
option specifies an exposure compensation in f-stops (powers of two).
|
| 75 |
|
|
Only integer stops are allowed, for efficiency.
|
| 76 |
|
|
.PP
|
| 77 |
|
|
The
|
| 78 |
|
|
.I \-r
|
| 79 |
|
|
option invokes a reverse conversion, from a TIFF image to
|
| 80 |
|
|
a RADIANCE picture.
|
| 81 |
|
|
The RADIANCE picture file can be taken from the standard input
|
| 82 |
|
|
or sent to the standard output by using a hyphen ('-') in place
|
| 83 |
|
|
of the file name, but the TIFF image must be to or from a file.
|
| 84 |
|
|
The
|
| 85 |
|
|
.I \-x
|
| 86 |
|
|
option can be used to specify an XYZE Radiance output file, rather
|
| 87 |
|
|
than the default RGBE.
|
| 88 |
|
|
.SH EXAMPLES
|
| 89 |
|
|
To convert a Radiance picture to SGILOG-compressed TIFF format:
|
| 90 |
|
|
.IP "" .2i
|
| 91 |
greg |
1.6 |
ra_tiff \-L scene1.hdr scene1.tif
|
| 92 |
greg |
1.1 |
.PP
|
| 93 |
|
|
To later convert this image back into Radiance and display using
|
| 94 |
|
|
human visibility tone-mapping:
|
| 95 |
|
|
.IP "" .2i
|
| 96 |
greg |
1.6 |
ra_tiff \-r scene1.tif scene1.hdr
|
| 97 |
greg |
1.1 |
.br
|
| 98 |
greg |
1.6 |
ximage \-e human scene1.hdr
|
| 99 |
greg |
1.1 |
.SH AUTHOR
|
| 100 |
|
|
Greg Ward Larson
|
| 101 |
|
|
.br
|
| 102 |
|
|
Sam Leffler
|
| 103 |
|
|
.SH ACKNOWLEDGEMENT
|
| 104 |
|
|
Work on this program was initiated and sponsored by the LESO
|
| 105 |
|
|
group at EPFL in Switzerland.
|
| 106 |
|
|
Additions for the SGILOG data encoding were sponsored by Silicon Graphics, Inc.
|
| 107 |
|
|
.SH BUGS
|
| 108 |
|
|
Many TIFF file subtypes are not supported.
|
| 109 |
|
|
.br
|
| 110 |
|
|
A gamma value other than 2.2 is not properly recorded or understood if
|
| 111 |
|
|
recorded in the TIFF file.
|
| 112 |
|
|
.SH "SEE ALSO"
|
| 113 |
greg |
1.4 |
pfilt(1), ra_bmp(1), ra_bn(1), ra_ppm(1), ra_pr(1), ra_pr24(1), ra_t8(1),
|
| 114 |
greg |
1.1 |
ra_t16(1), ximage(1)
|