resample

[ XITE Reference Manual | XITE home ]

Name

resample - stretch or compress an image

Syntax

resample <inimage> <outimage> [<newxsize> <newysize> ...]

Description

Every band in the old image is stretched or compressed to the size specified in the command line. You may specify independant sizes for every band. If there are more bands than size specifications, the last size specification is applied to the rest of the bands. Default sizes are 512x512.

The program uses the value found in the nearest pixel in the old image, no interpolation is performed.

Files

See also

Diagnostics

Restrictions

Return value

Author

Tor L|nnestad, BLAB, ifi, UiO

Examples

 resample mona.img largemona.img
 resample mona.img smallmona.img 256 256
 resample mona.img:1:1:1 monas.img 128 256 \\
     256 128  256 256

Id

$Id: resample.c,v 1.22 1996/11/08 14:05:16 svein Exp $