warp
Warp an image using a Control Network
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 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. |
Parameters
Files
Type | cube |
---|---|
File Mode | input |
Filter | *.cub |
Type | cube |
---|---|
File Mode | output |
Type | filename |
---|---|
File Mode | input |
Filter | *.net |
Warp parameters
Type | integer |
---|---|
Default | 1 |
Minimum | 1 (inclusive) |
Type | boolean |
---|---|
Default | true |
Type | string | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Default | MATCH | ||||||||||||
Option List: |
|
Type | cube |
---|---|
File Mode | input |
Filter | *.cub |
Type | integer |
---|---|
Minimum | 1 (inclusive) |
Type | integer |
---|---|
Minimum | 1 (inclusive) |
Interpolation
Type | string | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Default | CUBICCONVOLUTION | ||||||||||||
Option List: |
|
Example 1
Warp Example 1
Command Line
warp warp from=warp_from.cub to=warp_example1.cub
cnet=warp_example1.net osize=user onl=1000 ons=1000
Input Image
Input image for warp
Input image
Parameter Name:
FROM
This is the input image for the warp examples.
Data File
Links open in a new window.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
Example 2
Warp Example 2
Command Line
warp warp from=warp_from.cub to=warp_example2.cub
cnetl=warp_example2.net osize=user onl=1000 ons=1000
Input Image
Input image for warp
Input image
Parameter Name:
FROM
This is the input image for the warp examples.
Data File
Links open in a new window.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
Example 3
Warp Grid Example 3
Command Line
warp warp from=grid_raw.cub to=grid_warp_weight.cub
cnet=warp_points.net osize=user onl=1000 ons=1000 interp=bilinear
Input Image
Input image for warp
Input image
Parameter Name:
FROM
This input file is a 1000x1000 size image with grid lines at 50x50 increments.
Data File
Links open in a new window.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. |
---|