Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

ra_bmp(1) [osx man page]

RA_BMP(1)						      General Commands Manual							 RA_BMP(1)

ra_bmp - convert RADIANCE picture to/from Windows BMP image SYNOPSIS
ra_bmp [ -b ][ -g gamma ][ -e spec ][ -p xr yr xg yg xb yb xw yw ] [ [ input|- [ output ] ] ra_bmp -r [ -g gamma ][ -e +/-stops ] [ [ input|- [ output ] ] DESCRIPTION
Ra_bmp converts between RADIANCE and a Windows BMP image. During forward conversion, the -b option produces 8-bit grayscale output rather than 24-bit RGB. The -g option specifies the exponent used in monitor gamma correction; the default value is 2.2. The -e option specifies a tone-mapping method or exposure compensation. If the argument is one of the special words "auto", "human", or "linear", the image will be tone-mapped with histogram adjustment, human vision simulation, or an averaged linear exposure, respectively. (These words may be abbreviated by one or more letters.) Otherwise, the exposure specification is interpreted as a linear compensation value in integer f- stops, which must be proceeded by a '+' or '-'. The CRT color output primaries may be specified with the -p option. The -r option invokes a reverse conversion, from a Windows BMP image to a RADIANCE picture. Tone-mapping and monitor primaries are not supported for reverse conversion. Ra_bmp can accept 16-bit or color-mapped BMP files on input, but cannot not produce them on output. A hyphen ('-') may be specified to indicate standard input for either forward or reverse conversion so that an output file may be speci- fied. If the BMP input is taken from the standard input or sent to the standard output without tone-mapping, then the scanlines may be reversed from their usual ordering. Reversed scanlines sometimes causes difficulties for programs attempting to interpret the resulting RADIANCE picture or BMP image, which may be rejected or displayed inverted. AUTHOR
Greg Ward SEE ALSO
pfilt(1), ra_ppm(1), ra_pr(1), ra_pr24(1), ra_t8(1), ra_t16(1), ra_tiff(1), ximage(1) RADIANCE
3/25/04 RA_BMP(1)

Check Out this Related Man Page

RA_TIFF(1)						      General Commands Manual							RA_TIFF(1)

ra_tiff - convert RADIANCE picture to/from a TIFF color or greyscale image SYNOPSIS
ra_tiff [ -z|-L|-l|-f|-w ][ -b ][ -e +/-stops ][ -g gamma ] { in.hdr|- } out.tif ra_tiff -r [ -x ][ -g gamma ][ -e +/-stops ] in.tif [ out.hdr|- ] DESCRIPTION
Ra_tiff converts between RADIANCE and TIFF image formats. The -g option specifies the exponent used in gamma correction; the default value is 2.2, which is the recommended value for TIFF images. The -b option can be used to specify an 8-bit greyscale TIFF output file. The type of input file is determined automatically. The -z option will result in LZW compression of the TIFF output file. The -L option specifies SGILOG compression, which is recommended to capture the full dynamic range of the Radiance picture. However, since many TIFF readers do not yet support this format, use this option under advisement. The -l option specifies SGILOG24 compressed output, which has less dynamic range than SGILOG, but may be smaller in some cases. (It is usually larger.) The -f option specifies 32-bit IEEE floating-point/primary output, which is the highest resolution format but results in very large files, since each RGB pixel takes 96 bits (12 bytes) and does not compress well. The -w option specifies 16-bit/primary output, which is understood by some photo editing software, such as Adobe Photoshop. Decompression is automatically deter- mined for TIFF input. The -e option specifies an exposure compensation in f-stops (powers of two). Only integer stops are allowed, for efficiency. The -r option invokes a reverse conversion, from a TIFF image to a RADIANCE picture. The RADIANCE picture file can be taken from the stan- dard input or sent to the standard output by using a hyphen ('-') in place of the file name, but the TIFF image must be to or from a file. The -x option can be used to specify an XYZE Radiance output file, rather than the default RGBE. EXAMPLES
To convert a Radiance picture to SGILOG-compressed TIFF format: ra_tiff -L scene1.hdr scene1.tif To later convert this image back into Radiance and display using human visibility tone-mapping: ra_tiff -r scene1.tif scene1.hdr ximage -e human scene1.hdr AUTHOR
Greg Ward Larson Sam Leffler ACKNOWLEDGEMENT
Work on this program was initiated and sponsored by the LESO group at EPFL in Switzerland. Additions for the SGILOG data encoding were sponsored by Silicon Graphics, Inc. BUGS
Many TIFF file subtypes are not supported. A gamma value other than 2.2 is not properly recorded or understood if recorded in the TIFF file. SEE ALSO
pfilt(1), ra_bmp(1), ra_bn(1), ra_ppm(1), ra_pr(1), ra_pr24(1), ra_t8(1), ra_t16(1), ximage(1) RADIANCE
8/29/97 RA_TIFF(1)
Man Page

Featured Tech Videos