Home
About Isis
Support
Download

Isis 3

Documentation
Tutorials
Technical Documents

Isis 2

Documentation
Tutorials
Technical Documents

Search

USGS

Isis 3 Application Documentation


enlarge

Printer Friendly View | TOC | Home

Enlarge an image by any amount

Overview Parameters Example 1

Description

This program will enlarge an image any amount in both the sample and line directions.

Categories


History

Stuart Sides2002-12-13 Original version
Stuart Sides2003-01-28 Fixed documentation error. The application name was rotate instead of enlarge.
Kim Sides2003-05-13 Added application test
Stuart Sides2003-05-16 Modified schema location from astogeology... to isis.astrogeology..."
Stuart Sides2003-05-30 Fixed compiler error with uninitialized variable after adding -O1 flag
Stuart Sides2003-07-29 Modified filename parameters to be cube parameters where necessary
Drew Davidson2005-08-17 Added example
Brendan George2005-10-31 Fixed application test
Sean Crosby2007-02-28 Program now updates output file's mapping keywords
Steven Lambright2007-06-22 Fixed typo in the user documentation
Steven Lambright2008-05-13 Removed references to CubeInfo
Steven Koechle2008-05-28 Fixed problems with the way the Alpha Cube was handled

Parameter Groups

Files

Name Description
FROM Input cube to enlarge
TO Output cube

Scaling

Name Description
SMAGSample magnification factor
LMAGLine magnification factor

Interpolation

Name Description
INTERPType of interpolation
X

Files: FROM


Description

Use this parameter to select the filename. All bands within the file will be enlarged unless a specific band is specified.

Type cube
File Mode input
Filter *.cub
Close Window
X

Files: TO


Description

This file will contain the results of the enlargement.

Type cube
File Mode output
Close Window
X

Scaling: SMAG


Description

This determines new size of the cube in the sample direction only. The number of samples will be multiplied by this number.

Type double
Minimum 1.0 (inclusive)
Close Window
X

Scaling: LMAG


Description

This determines new size of the cube in the line direction only. The number of linees will be multiplied by this number.

Type double
Minimum 1.0 (inclusive)
Close Window
X

Interpolation: INTERP


Description

This is the type of interpolation to be performed on the input.

Type string
Default CUBICCONVOLUTION
Option List:
Option Brief Description
NEARESTNEIGHBORNearest Neighbor Each output pixel will be set to the pixel nearest the calculated input pixel.
BILINEARBi-Linear interpolation Each output pixel will be set to the value calculated by a bi-linear interpolation of the calculated input pixel.
CUBICCONVOLUTIONCubic Convolution interpolation Each output pixel will be set to the value calculated by a cubic convolution interpolation of the calculated input pixel.
Close Window

Example 1

Enlarge 2x1

Description

This invocation of the enlarge application enlarges an image by a factor of 2 in the horizontal direction and a factor of 1 in the vertical direction. The effective result is a horizontal stretch and a larger image.

Command Line

enlarge from= peaks.cub to=enlargedPeaks.cub smag=2 lmag=1
As one can see, the sample magnitude is twice the line magnitude. Since no interpolation has been specified, the application will default to nearest neighbor.

GUI Screenshot

enlarge gui

Example GUI

Screenshot of the GUI with parameters set to perform an enlargement of the samples.

Input Image

The image before the filter

Input image before enlarge.

Parameter Name: FROM

This is the image as it was taken originally. It is important to realize that this image has been scaled down to fit on an web browser. At full size, the image would be 1024 x 1024 pixels.

Output Image

The image after the filter

Output image after horizontal stretch using enlarge

Parameter Name: TO

The enlarged image. Though it has been scaled down to fit in a web browser, one can realize the impact of the enlargement on the samples alone. At full size, the image would be 2048 x 1024 pixels.