Gamma DISP: Reference Manual


ras_linear

ANSI-C program: ras_linear.c

NAME
ras_linear - Converts a real valued input data file (float) to an (8-bit) SUN raster or BMP format image using linear scaling.

SYNOPSIS
ras_linear <pwr> [width] [start] [nlines] [pixavr] [pixavaz] [min] [max] [LR] [raster] [inverse] [channel]
 

<pwr> intensity image (float)
<width> samples per row of pwr
[start] starting line of pwr (default=1)
[nlines] number of lines to display (default=0: to end of file)
[pixavr] number of pixels to average in range (default=1)
[pixavaz] number of pixels to average in azimuth (default=1)
[min] minimum value for display (default=0.0)
[max] maximum value for display (default=1.0)
[LR] left/right flipping flag, (default=1: normal, -1: mirror image)
[rasf] output (or input) rasterfile (default=*.ras: SUN raster format, *.bmp: BMP format)
[inverse] inverse flag (default=1: float_to_raster, -1: raster_to_float)
[channel] RBG channel flag (default=1:red, 2:green, 3:blue)

EXAMPLES
ras_linear 1825_1868.cc 2500 1 0 3 3 0.0 1.0 1825_1868.cc.ras

Generates an (8-bit) SUN raster (gray-scaled) from the input coherence file using linear scaling between 0.0 and 1.0, with a 3x3 average.

ras_linear 1825_1868.hgt 2500 1 0 1 1 400.0 1200.0 1825_1868.hgt.ras

Generates an (8-bit) SUN raster (gray-scaled) from the input height map using linear scaling between 400 and 1200.

DESCRIPTION
ras_linear generates an 8-bit SUN raster or BMP format image from a real valued input data file (float) using linear scaling.The output is an 8-bit image, the gray-scale correspond to values between the minimum value specified (--> 0, black) and the maximum value specified (-> 255, white).

The inverse operation can also be performed that converts the input raster file back to floating point data. If the input image is 24 bits/pixel, one of the 3 color channels can be selected for the inverse operation. In the case of 8 bits/pixel images, the channel value is derived from one of the channels of the associated color table entry.

OPTIONS
Multi-looking and the selection of a reduced number of lines may be applied. For the generation of a raster image using logarithmic scaling the program ras_dB, and for power law scaling the program raspwr (is part of the interferometric SAR processor, ISP), may be used.

NOTES
None.


© Copyrights for Documentation, and Reference Manual by Gamma Remote Sensing, 2007.
UW, CW, last change 21-May-2007