Home

Quick Links

Software Manual
GitHub
API Reference

Documentation Versions

Latest Release
Dev
8.3.0
8.2.0
8.1.0
8.0.0
7.2.0
7.1.0
7.0.0
6.0.0
3.9.0
3.5.0
USGS

ISIS Application Documentation


warp

Printer Friendly View | TOC | Home

Warp an image using a Control Network

Overview Parameters Example 1 Example 2 Example 3

Description

This application applies a geometric warp to an image using a user supplied Control Network. The Control Network consists of the input (FROM) cube and a second cube for which image-to-image Control Points are measured. Programs, such as coreg, can be used to generate the Control Network file for level1 or level2 cubes.

The Control Measures of the FROM cube are fit to the corresponding Control Measures of the second cube in the Control Network file using a weighted or non-weighted least squares fit to a polynomial of degree N, where N is specified by the DEGREE parameter.

With weighted least squares fit, specific pixel movement (input to output location) is based on Control Point distances from a given pixel. That is, Control Points closest to a given input pixel will have greater weight (influence) on the computed output location than Control Points furthest from the input pixel. With non-weighted least squares fit, all Control Points will have equal weight toward influencing individual pixel movement.


Categories


Related Applications to Previous Versions of ISIS

This program replaces the following applications existing in previous versions of ISIS:
  • random
  • warp2

History

Kay Edwards1987-06-08 Original version
Jeff Anderson2004-06-18 Converted to Isis 3.0
Elizabeth Miller2005-10-11 Finished documentation and code
Elizabeth Miler2005-11-03 Added appTest
Jacob Danton2006-04-05 Added error checking for control networks
Steven Lambright2007-06-22 Fixed typo in user documentation
Steven Lambright2008-05-13 Removed references to CubeInfo
Stacy Alley2008-12-19 Updating documentation and adding examples
Janet Barrett2010-07-30 Changed CONTROL parameter name to CNET.
Kris Becker2011-10-07 Updated documentation with review and contributions from Chris Isbell and Annie Howington.
Jacob Cain2022-11-22 Changed CUBE type to cube. Fixes #4780.

U.S. Department of the Interior | U.S. Geological Survey
ISIS | Privacy & Disclaimers | Astrogeology Research Program
To contact us, please post comments and questions on the USGS Astrogeology Discussion Board
To report a bug, or suggest a feature go to: ISIS Github
File Modified: 02/21/2025 19:28:14
X

Files: FROM


Description

Specify the input cube to be warped. This can be a level1 or level2 cube. All bands within the cube will be warped unless a specific band is specified.

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

Files: TO


Description

This new output cube will contain the results of the warp processing. It will either be a single-band or multi-band cube based on the input bands specified in the FROM cube.

Type cube
File Mode output
Close Window
X

Files: CNET


Description

This input Control Network file contains image-to-image Control Points that will be used to apply the warp transformation. Exactly two images are allowed in this Control Network, one of which must be the FROM cube. This file is typically generated by the coreg application.

Type filename
File Mode input
Filter *.net
Close Window
X

Warp parameters: DEGREE


Description

The order of the polynomial to be used in the linear regression fit. Higher order polynomial requires more numerous Control Points.

Type integer
Default 1
Minimum 1 (inclusive)
Close Window
X

Warp parameters: WEIGHTED


Description

With this option selected (default), specific pixel movement (input to output location) is based on Control Point distances from the pixel. That is, Control Points closest to a given input pixel will have greater weight (influence) on the computed output location than Control Coints furthest from the input pixel. Without this selection, all Control Points will have equal weight toward influencing individual pixel movement.

Type boolean
Default true
Close Window
X

Warp parameters: OSIZE


Description

This option determines how the size of the output cube is determined. The choices are MATCH, COMPUTE, and USER. The MATCH option (default) matches the output cube size to the size of the cube provided in the CUBE parameter. The COMPUTE option calculates the output cube size from the Control Network file. The USER parameter allows the user to set the output cube size by entering sample and line values in the ONS and ONL parameters.

Type string
Default MATCH
Option List:
Option Brief Description
MATCHMatch size of cube This option will match the output cube to the size of the cube provided in the CUBE parameter.

Exclusions

  • ONL
  • ONS
COMPUTECompute size using Control Points Computes the size of the output file using the Control Network file. This is done by solving for output positions given input positions, then walk the edge of the input file to find the maximum output line and sample.

Exclusions

  • ONL
  • ONS
  • CUBE
USERUser specific output cube size The output cube size as provided by the ONS and ONL parameters.

Exclusions

  • CUBE

Inclusions

  • ONL
  • ONS
Close Window
X

Warp parameters: CUBE


Description

The output cube will have the same dimensions as the cube entered here.

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

Warp parameters: ONL


Description

Requested number of lines for the output cube.

Type integer
Minimum 1 (inclusive)
Close Window
X

Warp parameters: ONS


Description

Requested number of samples for the output cube.

Type integer
Minimum 1 (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 that of the pixel nearest the calculated input pixel.
BILINEARBi-Linear interpolation Each output pixel value will be set as calculated by a bi-linear pixel value interpolation of an 2x2 pixel array about the calculated input pixel position.
CUBICCONVOLUTIONCubic Convolution interpolation Each output pixel value will be set as calculated by a cubic convolution pixel value interpolation of an 4x4 pixel array about the calculated input pixel position.
Close Window