Go to the USGS Home Page

USGS MIPS Scale Documentation






This program is used to change the scale or pixel  resolution of an image . It can scale an image up or down in both the line and sample directions, independently. The program can scale using a nearest neighbor  or bilinear  interpolator.

  

Files

This program requires as input one unsigned 8-bit , or one signed 16-bit , or one 32-bit  floating point image file and will produce a scaled version of the same type. The following information is transferred from the input file to the output file(if appropriate):

Image labels 
Sonar labels
Projection labels
Navigation  file
History  file
Image and sonar labels will be updated to reflect the new pixel resolution and projection labels will only be transferred if the line and sample scales remain the same.

If the image is from a sonar device and contains navigation data, the navigation data will also be scaled.

       

Parameters

NL and LSCALE

These parameters are used to determine the number of lines in the output image. Only one of them can be entered. If NL is entered, this will be the number of lines in the output file. If LSCALE is entered, then this will be the scaling factor applied to the number of lines in the input image. For example, given 100 lines in the input image and LSCALE of 2.5, then 250 lines would be created in the output image. An LSCALE of 0.5 would produce 50 lines in the output image.

NS and SSCALE

These parameters are used to determine the number of samples in the output image. Only one of them can be entered. If NS is entered, this will be the number of samples in the output file. If SSCALE is entered, then this will be the scaling factor applied to the number of samples in the input image. For example, given 100 samples in the input image and SSCALE of 2.5 then 250 samples would be created in the output image. An SSCALE of 0.5 would produce 50 samples in the output image.

NN or AVERAGE

These options are used to define how the scaling is to be performed. This program will use a nearest neighbor interpolator if NN is selected and will use a bilinear interpolator if AVERAGE is selected.

Examples

From left to right, original Landsat MSS Band 6, scaled down 2x using nearest neighbor interpolator, and scaled down 2x using bilinear interpolator.

[Example Image] [Example Image] [Example Image]



From left to right, sub-area of Landsat MSS Band 6, scaled up 2.5x using nearest neighbor interpolator, and scaled up 2.5x using bilinear interpolator.

[Example Image] [Example Image] [Example Image]

See Also

Dk2dk 
Geom 
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:23 MST 2002
FirstGov: Your First Click to the U.S. Gov ernment