histitch
Merge a HiRISE channel pair to make a single image
The program allows the user to combine two HiRISE channels to form a single CCD image. Histitch will typically be run after radiometric correction and prior to geometric processing. The two input files must be the individual channel files (channels 0 and 1) of the same CCD observation. The program will test to make sure the Observation IDs and CCD IDs of the input cubes match, and that one cube is channel 0 and the other is channel 1. The program is clever enough to figure out the channels associated with each input file and correctly order them in the output file. Any ancillary data "blobs" will not be propagated to the output file. The channel number on the output cube is set to 2 to signify that it is the combination of channels 0 and 1.
histitch can create a CCD image if when only one channel is provided. The proper placement, left half of CCD for channel 1 images, right half for channel 0, is determined from the input file and the remainder of the CCD is filled with Nulls.
Categories
History
Eric Eliason | 2004-07-31 | Original version |
Elizabeth Ribelin | 2005-02-22 | Added obsevation id, ccd id, and channel number tests |
Kris Becker | 2006-02-22 | Made FROM2 optional and allow creation of full CCD with just one channel file. |
Brendan George | 2006-08-24 | Added StitchedChannels keyword to Instrument Group, to identify which channels were used. |
Brendan George | 2006-09-01 | Added StitchedProductIds keyword to Instrument group, to identify which images were used. |
Brendan George | 2006-09-28 | Documentation fixes |
Stacy Alley | 2007-08-16 | Added the balance option. |
Steven Lambright | 2008-05-13 | Removed references to CubeInfo |
Kris Becker | 2008-10-02 | Added new EQUALIZE balance option that has utilizes new options WIDTH, FILL, CHANNEL and OPERATOR parameters. This new option applies a line-by-line equalization of the CCD channels using and addative or multiplicative option. |
Jeannie Walldren | 2008-11-05 | Replaced references to DataInterp class with NumericalApproximation. |
Kris Becker | 2008-12-08 | Set channel 1 (left) as the default to hold instead of channel 0. Added reporting of results to label in the Histitch group. Also added creation of a Table of data when the EQUALIZE BALANCE option is selected. |
Kris Becker | 2008-12-23 | The BALANCE=TRUE option now honors the CHANNEL parameter and applies the coefficient/ratio to the other channel. |
Steven Lambright & Stacy Alley | 2009-06-09 | Added error checking to SKIP and SEAMSIZE parameters. Fixed problem with accessing out of array bounds. |
Parameters
Files
Type | cube |
---|---|
File Mode | input |
Filter | *.cub |
This is the second of a pair of input HiRISE channel image files. This file can be either the channel 0 or 1 file. The pair of input files must correspond to the the same observation of a HiRISE CCD.
If the user does not provide a file for the second file, histitch will create a full CCD and map the FROM1 file into the proper location in the CCD. This allows creation of the full CCD without both channels being required.
Type | cube |
---|---|
File Mode | input |
Internal Default | None |
Filter | *.cub |
Type | cube |
---|---|
File Mode | output |
Filter | *.cub |
Balance Channels
Type | string | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Default | FALSE | ||||||||||||
Option List: |
|
Type | integer |
---|---|
Default | 7 |
Minimum | 0 (inclusive) |
Type | integer |
---|---|
Default | 11 |
Minimum | 1 (inclusive) |
Type | integer |
---|---|
Default | 0 |
Type | boolean |
---|---|
Default | true |
Type | integer |
---|---|
Default | 1 |
Minimum | 0 (inclusive) |
Maximum | 1 (inclusive) |
Type | string | |||||||||
---|---|---|---|---|---|---|---|---|---|---|
Default | MULTIPLY | |||||||||
Option List: |
|
Example 1
HiRISE image
Command Line
histitch from1=IN/Channel0.cub from2=IN/Channel1.cub to=OUT/output.cub balance=true skip=7 seamsize=11
GUI Screenshot
Example Gui
hiStitch GuiScreenshot of GUI with parameters filled in to perform a hiStitch operation on the input images.
Input Image
Input images for hiStitch
Input HiRISE images
Parameter Name:
FROM1,FROM2
These are input images stitched together without the balance option on.