
INPUT;OUTPUTThe first two pairs, 0;0 and 10;0, will map all input DN values from 0 to 10 to a single output DN value of 0. Then the two pairs 10;0 and 100;255 will map the input DN values from 10-100 linearly to between the output values of 0 to 255 using the following equation:
0;0
10;0
100;255
255;255
(255 - 0)
output dn = ---------- + (input dn - 100) + 255
(100 - 10)
The general equation for any two pairs (i1,o1) and (i2,o2) is:
(o2 - o1)
output dn = --------- + (input dn - i2) + o2
(i2 - i1)
The restrictions on an input DN value for a stretch pair is that it is greater than the input DN value of the previous stretch pair and that it is within the valid range of dn values for the type of input data(e.g, 0 to 255 for unsigned 8-bit data and -32768 to 32767 for signed 16-bit , etc). The only restriction on the output DN value is that it must be within the valid range of values for the type of output data. Note that the input and output DN values do not have to be of the same type, so conversion of images to a different type can be achieved. For example, given a signed 16-bit image with DN values from -500 to 9000, it could be converted to an unsigned 8-bit data type using the following stretch pairs:-500;0If the extremes for the input data type are not entered on a stretch pair they are automatically mapped to the extremes of the output type. Thus the complete stretch pair parameters used for the example above are actually:
9000;255
INPUT;OUTPUTThe number of stretch pairs is limited to 128. Therefore, both piecewise and non-linear stretching transformations can be applied using this program.
-32768;0
-500;0
9000;255
32767;255
Image labels
Mosaic labels
Projection labels
Sonar labels
Navigation file
History file
![[Example Image]](b6s.gif)
![[Example Image]](b6ss.gif)
![[Example Image]](b6s_dark.gif)
![[Example Image]](b6s_light.gif)
![[Example Image]](b6ss.gif)
![[Example Image]](negative.gif)
|
U.S. Department of the Interior |
U.S. Geological Survey |
Jobs
Home | Search | Disclaimers & Privacy Web Rings Send comments to webman@TerraWeb.wr.usgs.gov URL: Last Modified: Thu Oct 31 15:08:22 MST 2002 |