ISIS Application Documentation
isis2std | Standard View | TOC | Home |
Exports a cube to PNG, BMP, TIFF, JPEG, or JPEG 2000
Description
Categories
Groups
Examples
History
This program exports an ISIS cube to one of several popular standard image formats. The current supported formats are BMP, JPEG, JP2, PNG, and TIFF.
This program uses TrollTech's version of the Qt Library to export BMP and JPEG formatted output images. For these format types, due to limitations of Qt, the input file size must not exceed 2 gigabytes and the only valid output bit type is 8-bit.
The JPEG2000 (JP2) and TIFF formats do not depend on the Qt library. These formats do not have the 2 GB limitation for input files and the output bit type may be 8-bit, U16-bit or S16-bit. For these formats, the writing routines output are streamed lines from the cube, and little of the image is held in memory at any one time, therefore increasing the processing speed to convert the file. It is recommended that large images are exported to JP2 or TIFF format. For some output image types, users may specify a value for the level of compression represented as a percentage using the QUALITY parameter. The default is no compression (i.e. QUALITY = 100%). For the TIFF format a compression algorithm can be selected.
Each of the input cube parameters (FROM, ALPHA, RED, GREEN, and BLUE) requires a single band from an ISIS cube. If a cube contains multiple bands, the user must specify a single band of the input image. To do this, the user must append a plus sign and the band number to be used to the input file name. For example, inputFile.cub+4 indicates that the 4th band in the cube will be used. No band needs to be specified if the cube only has a single band.
In addition, if the cube has Mapping labels, the program will produce a world file for use in Arc and/or other GIS packages. The file will have an extension that uses the first and last letters for the image extension and a "w". For example, .tif produces a world file extension of .tfw.
To ensure acceptable contrast in the output file, the user may select from three stretch options: linear, piecewise-linear, or manual.
Special pixels such as Low Saturation values and Nulls are set to black and High Saturation values are set to white. See the BITTYPE parameter documentation for more information about which output pixel values are assigned for particular input DNs of the various bit types.
Name | Description |
---|---|
FROM | Input cube to export |
ALPHA | Input cube to export as the alpha channel |
RED | Input cube to export as the red channel |
GREEN | Input cube to export as the green channel |
BLUE | Input cube to export as the blue channel |
TO | Output file |
MODE | Image mode |
Name | Description |
---|---|
FORMAT | Format of output image |
QUALITY | Specify output image quality |
BITTYPE | Bit type of output file |
COMPRESSION | The compression algorithm for TIFF format |
Name | Description |
---|---|
STRETCH | Type of stretch |
MINIMUM | Minimum pixel value |
MAXIMUM | Maximum pixel value |
AMIN | Minimum pixel value for the alpha channel |
AMAX | Maximum pixel value for the alpha channel |
RMIN | Minimum pixel value for the red channel |
RMAX | Maximum pixel value for the red channel |
GMIN | Minimum pixel value for the green channel |
GMAX | Maximum pixel value for the green channel |
BMIN | Minimum pixel value for the blue channel |
BMAX | Maximum pixel value for the blue channel |
MINPERCENT | Minimum Percent |
MAXPERCENT | Maximum Percent |
Use this parameter to select the filename and band to export. For example, file.cub+5 will select band 5.
Type | cube |
---|---|
File Mode | input |
Filter | *.cub |
Use this parameter to select the filename and band to export. For example, file.cub+5 will select band 5.
Type | cube |
---|---|
File Mode | input |
Filter | *.cub |
Use this parameter to select the filename and band to export. For example, file.cub+5 will select band 5.
Type | cube |
---|---|
File Mode | input |
Filter | *.cub |
Use this parameter to select the filename and band to export. For example, file.cub+5 will select band 5.
Type | cube |
---|---|
File Mode | input |
Filter | *.cub |
Use this parameter to select the filename and band to export. For example, file.cub+5 will select band 5.
Type | cube |
---|---|
File Mode | input |
Filter | *.cub |
Use this parameter to specify the name of the output file.
Type | filename |
---|---|
File Mode | output |
This parameter specifies the image mode. If GRAYSCALE, a single one-band cube is used. If RGB, three one-band cubes are used. If ARGB, four one-band cubes are used.
Type | string | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Default | GRAYSCALE | ||||||||||||
Option List: |
|
This parameter is used to select the output format. It can be one of PNG, BMP, JPEG, TIF, or JP2. Note that not all formats may be available. It will depend on your installation of the Qt libraries.
In addition, if the cube has Mapping labels, the program will produce a world file for use in Arc and/or other GIS packages. The file will have an extension that uses the first and last letters for the image extension and a "w". For example, .tif produces a world file extension of .tfw.
Type | string | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Default | PNG | ||||||||||||||||||
Option List: |
|
This parameter allows the user to specify level of quality (compression) for the output image. Some output image types may not utilize this parameter. The range is from 100 (no compression and highest quality) to 0 (highest compression and reduced quality). A value of -1 can be given to use the default settings.
Type | integer |
---|---|
Default | 100 |
Minimum | -1 (inclusive) |
Maximum | 100 (inclusive) |
This parameter allows the userPackBits is also known as Macintosh RLE. to set the bit type of the output image. Some FORMAT values will only allow 8-bit outputs. 16 bit signed (-32767=black, 32768=white)
Type | string | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Default | 8BIT | ||||||||||||
Option List: |
|
The compression algorithm used to compress an output TIFF format image. Only used if the format is set to TIFF. The default is no compression. PACKBITS is the most widely supported compression algorithm for the TIFF format.
Type | string | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Default | NONE | |||||||||||||||
Option List: |
|
This parameter is used to select one of three ways to stretch (or map) output pixels. The are LINEAR, PIECEWISE, or MANUAL.
Type | string | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Default | LINEAR | ||||||||||||
Option List: |
|
The minimum input pixel value which will be mapped to black.
Type | double |
---|---|
Less Than |
|
The maximum input pixel value which will be mapped to white.
Type | double |
---|---|
Greater Than |
|
The minimum input pixel value which will be mapped to black.
Type | double |
---|---|
Less Than |
|
The maximum input pixel value which will be mapped to white.
Type | double |
---|---|
Greater Than |
|
The minimum input pixel value which will be mapped to black.
Type | double |
---|---|
Less Than |
|
The maximum input pixel value which will be mapped to white.
Type | double |
---|---|
Greater Than |
|
The minimum input pixel value which will be mapped to black.
Type | double |
---|---|
Less Than |
|
The maximum input pixel value which will be mapped to white.
Type | double |
---|---|
Greater Than |
|
The minimum input pixel value which will be mapped to black.
Type | double |
---|---|
Less Than |
|
The maximum input pixel value which will be mapped to white.
Type | double |
---|---|
Greater Than |
|
The percentage of data in the histogram used to compute the minimum pixel value in the stretch.
Type | double |
---|---|
Default | 0.5 |
Less Than |
|
The percentage of data in the histogram used to compute the maximum pixel value in the stretch.
Type | double |
---|---|
Default | 99.5 |
Greater Than |
|
Example of red/green/blue output of isis2std program.
GUI for this example. This image show the graphical user interface for this program. |
Red band.
Parameter Name:
RED The input cube band to be exported as the red channel in the output image. |
|
Green band.
Parameter Name:
GREEN The input cube band to be exported as the green channel in the output image. |
|
Blue band.
Parameter Name:
BLUE The input cube band to be exported as the blue channel in the output image. |
Output world text file. | The output text world file for this image. |
---|
Output image.
Parameter Name:
TO The 8-bit output image, in TIFF format, created using the input red, green, and blue channels. |
Jeff Anderson | 2005-06-15 | Original version |
Drew Davidson | 2005-06-27 | Added application test |
Jacob Danton | 2006-02-06 | Added two new modes (rgb and argb) and updated the appTest. |
Elizabeth Miller | 2006-05-08 | Added MIN and MAX percent options |
Jacob Danton | 2006-05-22 | Added seperate MINIMUM and MAXIMUM parameters for all channels. |
Brendan George | 2007-05-03 | Modified to use Filename class, and added appropriate appTest |
Steven Lambright | 2007-07-10 | Modified to give an error if write fails. Memory leak fixed. |
Jeff Anderson | 2007-08-20 | Modified so that ISIS Null pixels are written as zeros in the output cube and low data in the input is written as a one |
Steven Koechle | 2007-08-22 | Added a check to see that raw image data will be less than 4GB. Throw exception if it is too big. |
Steven Lambright | 2008-05-12 | Removed references to CubeInfo |
Kris Becker | 2008-10-17 | Added QUALITY parameter to set compression levels |
Christopher Austin | 2008-11-04 | Fixed checkDataSize() since Qimage has a maximum size of 2 GB, not 4GB. Added some QT error catching. |
Steven Koechle | 2009-02-20 | Documentation Change |
Janet Barrett | 2010-01-27 | Added support for JPEG2000 files. |
Stuart Sides and Steven Lambright | 2012-04-03 | Added minimum and maximum input stretch values and output file name to the output log. fixes #761 |
Travis Addair | 2012-04-03 | Added support for exporting cubes greater than 2GB to TIFFs. |
Steven Lambright | 2012-08-28 | Fixed some problems with the big tiff exports that caused corrupt outputs. The 2GB limitation should be removed completely now. References #579. |
Jeannie Backer | 2013-06-05 | Fixed bug where alpha channel was not being utilized for ARGB option. Fixed bug that mapped Nulls as the min value for TIFF and JP2 formats. Changed ImageExporter calls to new method names, where needed. Added test for ARGB parameter. Added xml example. Added appTests to improve coverage for isis2std program and the ImageExporter and its derived classes. Fixes #1380. |
Jeffrey Covington | 2015-02-12 | Changed default compression of TIFF format images to no compression. Added COMPRESSION parameter to choose the compression algorithm for TIFF format images. Fixes #1745 |
Kaitlyn Lee | 2018-02-08 | Removed the option to export as a GIF because Qt does not support GIF exports. Fixes #1667. |