ISIS Application Documentation
warp | Standard View | TOC | Home |
Warp an image using a Control Network
Description
Categories
Groups
Examples
History
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.
Name | Description |
---|---|
FROM | Input cube to warp |
TO | Output cube |
CNET | Control Network file |
Name | Description |
---|---|
DEGREE | Order of polynomial |
WEIGHTED | Weight the Control Points using distance |
OSIZE | Output cube size |
CUBE | Match Output cube to this Cube's Size |
ONL | Output Lines |
ONS | Output Samples |
Name | Description |
---|---|
INTERP | Type of interpolation |
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 |
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 |
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 |
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) |
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 |
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: |
|
The output cube will have the same dimensions as the cube entered here.
Type | cube |
---|---|
File Mode | input |
Filter | *.cub |
Requested number of lines for the output cube.
Type | integer |
---|---|
Minimum | 1 (inclusive) |
Requested number of samples for the output cube.
Type | integer |
---|---|
Minimum | 1 (inclusive) |
This is the type of interpolation to be performed on the input.
Type | string | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Default | CUBICCONVOLUTION | ||||||||||||
Option List: |
|
Warp Example 1
Input image for warp
Parameter Name:
FROM This is the input image for the warp examples. |
Control Network input file. | This is the required input for the CNET parameter. In each control point there are two measures. Measure 1 is the point on the from cube you would like to map to measure 2. |
---|
Output image for warp
Parameter Name:
TO This is the output image for this example of warp. The Control Network file link below contains the points required to create this kind of a warp output. |
Warp Example 2
Input image for warp
Parameter Name:
FROM This is the input image for the warp examples. |
Control Network input file. | This is the required input for the CNET parameter. In each control point there are two measures. Measure 1 is the point on the from cube you would like to map to measure 2. |
---|
Output image for warp
Parameter Name:
TO This is the output image for this example of warp. The Control Network file link below contains the points required to create this kind of a warp output. |
Warp Grid Example 3
Input image for warp
Parameter Name:
FROM This input file is a 1000x1000 size image with grid lines at 50x50 increments. |
Control Network input file. | This is the require input for the CNET parameter. In each control point there are two measures. Measure 1 is the point on the from cube you would like to map to measure 2. |
---|
Output image for warp
Parameter Name:
TO This is the output image for this example of warp. The Control Network file link below contains the points required to create this kind of a warp output. |
Kay Edwards | 1987-06-08 | Original version |
Jeff Anderson | 2004-06-18 | Converted to Isis 3.0 |
Elizabeth Miller | 2005-10-11 | Finished documentation and code |
Elizabeth Miler | 2005-11-03 | Added appTest |
Jacob Danton | 2006-04-05 | Added error checking for control networks |
Steven Lambright | 2007-06-22 | Fixed typo in user documentation |
Steven Lambright | 2008-05-13 | Removed references to CubeInfo |
Stacy Alley | 2008-12-19 | Updating documentation and adding examples |
Janet Barrett | 2010-07-30 | Changed CONTROL parameter name to CNET. |
Kris Becker | 2011-10-07 | Updated documentation with review and contributions from Chris Isbell and Annie Howington. |
Jacob Cain | 2022-11-22 | Changed CUBE type to cube. Fixes #4780. |