Home
About Isis
Support
Download

Isis 3

Documentation
Tutorials
Technical Documents

Isis 2

Documentation
Tutorials
Technical Documents

Search

USGS

Isis 3 Application Documentation


isis2std

Printer Friendly View | TOC | Home

Exports a cube to PNG, JPEG, TIFF format

Overview Parameters

Description

This program will export an Isis cube to one of several popular standard formats. The formats may include PNG, JPEG, TIFF, BMP, and GIF. Not all formats are available as the program implementation depends on the Qt library by TrollTech. This program required the input cube have exactly one band. Therefore, you must input a cube with exactly one band or a multi-band cube with a band specifier (e.g., file.cub+4). In addition if the cube has Mapping labels, the program will produce a world file for use in Arc and/or other GIS type packages. The file will have an extension of that uses the first and last letters for the image extenstion and a "w". For example, tif produces a world file extension of tfw.

In order to ensure acceptable contrast in the output file, three stretch options are given 1) linear, 2) piecewise-linear, and 3) manual. Special pixels are mapped in the following manner, Low Saturation values and Null are made black and High Saturation values are made white. Please note, this program will not output a color image products.


Categories


Related Applications in Previous Versions of Isis

This application replaces the following applications existing in previous versions of Isis, which have been deprecated from the current version of Isis:
  • dform
  • isis2tif
  • isis2jpg
  • isis2gisworld

Related Objects and Documents

Applications


History

Jeff Anderson2005-06-15 Original version
Drew Davidson2005-06-27 Added application test
Jacob Danton2006-02-06 Added two new modes (rgb and argb) and updated the appTest.
Elizabeth Miller2006-05-08 Added MIN and MAX percent options
Jacob Danton2006-05-22 Added seperate MINIMUM and MAXIMUM parameters for all channels.
Brendan George2007-05-03 Modified to use Filename class, and added appropriate appTest
Steven Lambright2007-07-10 Modified to give an error if write fails. Memory leak fixed.
Jeff Anderson2007-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 Koechle2007-08-22 Added a check to see that raw image data will be less than 4GB. Throw exception if it is too big.
Steven Lambright2008-05-12 Removed references to CubeInfo

Parameter Groups

Files

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
MODEImage mode

Output type

Name Description
FORMATFormat of output image

Stretch Options

Name Description
STRETCHType of stretch
MINIMUMMinimum pixel value
MAXIMUMMaximum pixel value
AMINMinimum pixel value format the alpha channel
AMAXMaximum pixel value for the alpha channel
RMINMinimum pixel value for the red channel
RMAXMaximum pixel value for the red channel
GMINMinimum pixel value for the green channel
GMAXMaximum pixel value for the green channel
BMINMinimum pixel value for the blue channel
BMAXMaximum pixel value for the blue channel
MINPERCENTMinimum Percent
MAXPERCENTMaximum Percent
X

Files: FROM


Description

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
Close Window
X

Files: ALPHA


Description

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
Close Window
X

Files: RED


Description

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
Close Window
X

Files: GREEN


Description

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
Close Window
X

Files: BLUE


Description

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
Close Window
X

Files: TO


Description

Use this parameter to specify the name of the output image. Don not include an extension as one will be automatically added.

Type filename
File Mode output
Close Window
X

Files: MODE


Description

This parameter specifies the image mode. If GRAYSCALE, a single one-band cube is used. If RGB, three one-band cubes are used.

Type string
Default GRAYSCALE
Option List:
Option Brief Description
GRAYSCALEGrayscale mode A single channel image.

Exclusions

  • ALPHA
  • RED
  • GREEN
  • BLUE
  • AMIN
  • AMAX
  • RMIN
  • RMAX
  • GMIN
  • GMAX
  • BMIN
  • BMAX
RGBRGB mode A three channel image (red, green, and blue).

Exclusions

  • FROM
  • ALPHA
  • MINIMUM
  • MAXIMUM
  • AMIN
  • AMAX
ARGBARGB mode A four channel image (alpha, red, green, and blue).

Exclusions

  • FROM
  • MINIMUM
  • MAXIMUM
Close Window
X

Output type: FORMAT


Description

This parameter is used to select the output format. It can be one of PNG, BMP, JPEG, TIF, or GIF. Note that not all formats are available. It will depend on your installation of the Qt libraries.

Type string
Default PNG
Option List:
Option Brief Description
PNGPortable network graphics Output Isis cube in PNG format
BMPBit mapped graphics Output Isis cube in BMP format
GIFGraphics interchange format Output Isis cube in GIF format
TIFFTagged image files format Output Isis cube in TIFF format
JPEGJoint Photographic Experts Group Output Isis cube in JPEG format
Close Window
X

Stretch Options: STRETCH


Description

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:
Option Brief Description
LINEAR Linear stretch A minimum and maximum are automatically computed based on the statistics of the selected band. A histogram of the band is used to pick the minimum at 0.5% of the data and the maximum at 99.5% of the data. Input pixels less than or equal to the minimum are stretched to black while pixels greater than the or equal to the maximum are stretched to white. A linear mapping occurs between the minimum and maximum.

Exclusions

  • MINIMUM
  • MAXIMUM
  • AMIN
  • AMAX
  • RMIN
  • RMAX
  • GMIN
  • GMAX
  • BMIN
  • BMAX
PIECEWISE Piecewise-linear stretch This option is similar to the LINEAR option. A minimum and maximum are automatically computed. Additionally, the median is computed and it is mapped to the middle gray value (halfway between white and black). Therefore, it is a piecewise-linear stretch with input pixels mapped linearly between either 1) the minimum/median or 2) the median/maximum. This option is useful for contrast stretching cubes with skewed histograms to ensure a balanced contrast.

Exclusions

  • MINIMUM
  • MAXIMUM
  • AMIN
  • AMAX
  • RMIN
  • RMAX
  • GMIN
  • GMAX
  • BMIN
  • BMAX
MANUAL Manual stretch This option allows you to pick your own stretch. You must enter a value for MINIMUM and MAXIMUM

Exclusions

  • MINPERCENT
  • MAXPERCENT
Close Window
X

Stretch Options: MINIMUM


Description

The minimum input pixel value which will be mapped to black.

Type double
Less Than MAXIMUM
Close Window
X

Stretch Options: MAXIMUM


Description

The maximum input pixel value which will be mapped to white.

Type double
Greater Than MINIMUM
Close Window
X

Stretch Options: AMIN


Description

The minimum input pixel value which will be mapped to black.

Type double
Less Than AMAX
Close Window
X

Stretch Options: AMAX


Description

The maximum input pixel value which will be mapped to white.

Type double
Greater Than AMIN
Close Window
X

Stretch Options: RMIN


Description

The minimum input pixel value which will be mapped to black.

Type double
Less Than RMAX
Close Window
X

Stretch Options: RMAX


Description

The maximum input pixel value which will be mapped to white.

Type double
Greater Than RMIN
Close Window
X

Stretch Options: GMIN


Description

The minimum input pixel value which will be mapped to black.

Type double
Less Than GMAX
Close Window
X

Stretch Options: GMAX


Description

The maximum input pixel value which will be mapped to white.

Type double
Greater Than GMIN
Close Window
X

Stretch Options: BMIN


Description

The minimum input pixel value which will be mapped to black.

Type double
Less Than BMAX
Close Window
X

Stretch Options: BMAX


Description

The maximum input pixel value which will be mapped to white.

Type double
Greater Than BMIN
Close Window
X

Stretch Options: MINPERCENT


Description

The percentage of data in the histogram used to compute the minimum pixel value in the stretch.

Type double
Default 0.5
Less Than MAXPERCENT
Close Window
X

Stretch Options: MAXPERCENT


Description

The percentage of data in the histogram used to compute the maximum pixel value in the stretch.

Type double
Default 99.5
Greater Than MINPERCENT
Close Window