Home

Quick Links

Software Manual
GitHub
API Reference

Documentation Versions

Latest Release
Dev
8.3.0
8.2.0
8.1.0
8.0.0
7.2.0
7.1.0
7.0.0
6.0.0
3.9.0
3.5.0
USGS

ISIS Application Documentation


std2isis

Printer Friendly View | TOC | Home

Imports a cube from PNG, JPEG, JP2, BMP or TIFF format

Overview Parameters Example 1 Example 2 Example 3

Description

This program will import several standard image formats to an Isis cube. The input image formats may include PNG, JPEG, JP2, TIFF, BMP, and GIF. Not all formats are available as the program implementation depends on the Qt library by TrollTech. This is not true of JPEG2000 files (JP2). It has support in the ISIS library. By default, the number of bands in the output cube will be one, three, and four when the input image is all gray, RGB, and RGB with an alpha channel, respectively. The user can, however, specify the color mode manually. The JP2 file can have any number of bands up to 16384. The output from a JP2 file will be a multi-spectral ISIS image file.

Categories


Related Objects and Documents

Applications


History

Steven Lambright2007-07-18 Original version
Steven Koechle2007-08-29 Added special pixel ranges and updated example images
Travis Addair2009-12-01 Added support for RGB and ARGB imports.
Travis Addair2009-12-03 Added AUTO option for automatically determining MODE.
Travis Addair2009-12-04 Changed example and added two new examples.
Janet Barrett2010-01-24 Added support for JPEG2000 files.
Kimberly Oyama2014-01-17 Updated the default app test to make sure the history group is in the resulting cube label. References #1894.

U.S. Department of the Interior | U.S. Geological Survey
ISIS | Privacy & Disclaimers | Astrogeology Research Program
To contact us, please post comments and questions on the USGS Astrogeology Discussion Board
To report a bug, or suggest a feature go to: ISIS Github
File Modified: 02/21/2025 19:28:14
X

Files: FROM


Description

Use this parameter to select the filename to import.

Type filename
File Mode input
Filter *.PNG *.JPG* .JPEG *.BMP *.TIF *.TIFF *.GIF *.JP2
Close Window
X

Files: TO


Description

Use this parameter to specify the name of the output cube.

Type cube
File Mode output
Pixel Type real
Close Window
X

Color Model Options: MODE


Description

This parameter specifies the image mode for the output cube. If GRAYSCALE, a single one-band cube will be created. If RGB, a three-band cube is created. Finally, if ARGB is selected, then a four-band cube will be created where the four bands correspond to first Red, second Green, third Blue, and last Alpha.

Type string
Default AUTO
Option List:
Option Brief Description
AUTOAutomatically determine output mode Checks to see if the image is a grayscale image, and if not, if it has an alpha channel, and sets the output mode accordingly.
GRAYSCALEGrayscale mode A single-channel image.
RGBRGB mode A three-channel image (red, green, and blue).
ARGBARGB mode A four-channel image (red, green, blue, and alpha).
Close Window
X

Special Pixels: SETNULLRANGE


Description

If this option is used input raw pixels below minimum and above maximum will be converted to LRS and HRS respectively. Otherwise pixels in the input raw file will be left unchanged in most cases. For example, importing a raw 8-bit file and outputing to a 16-bit or 32-bit real will cause 0 and 255 to be actual values. If left as 8-bit then 0 will be NULL and 255 will be HRS.

Type boolean
Default NO
Inclusions
  • NULLMIN
  • NULLMAX
Close Window
X

Special Pixels: NULLMIN


Description

Minimum valid value. Anything below this value will be set to LRS.

Type double
Inclusions
  • SETNULLRANGE
Close Window
X

Special Pixels: NULLMAX


Description

Maximum valid value. Anything above this value will be set to HRS.

Type double
Inclusions
  • SETNULLRANGE
Close Window
X

Special Pixels: SETHRSRANGE


Description

If this option is used input raw pixels below minimum and above maximum will be converted to LRS and HRS respectively. Otherwise pixels in the input raw file will be left unchanged in most cases. For example, importing a raw 8-bit file and outputing to a 16-bit or 32-bit real will cause 0 and 255 to be actual values. If left as 8-bit then 0 will be NULL and 255 will be HRS.

Type boolean
Default NO
Inclusions
  • HRSMIN
  • HRSMAX
Close Window
X

Special Pixels: HRSMIN


Description

Minimum valid value. Anything below this value will be set to LRS.

Type double
Inclusions
  • SETHRSRANGE
Close Window
X

Special Pixels: HRSMAX


Description

Maximum valid value. Anything above this value will be set to HRS.

Type double
Inclusions
  • SETHRSRANGE
Close Window
X

Special Pixels: SETLRSRANGE


Description

If this option is used input raw pixels below minimum and above maximum will be converted to LRS and HRS respectively. Otherwise pixels in the input raw file will be left unchanged in most cases. For example, importing a raw 8-bit file and outputing to a 16-bit or 32-bit real will cause 0 and 255 to be actual values. If left as 8-bit then 0 will be NULL and 255 will be HRS.

Type boolean
Default NO
Inclusions
  • LRSMIN
  • LRSMAX
Close Window
X

Special Pixels: LRSMIN


Description

Minimum valid value. Anything below this value will be set to LRS.

Type double
Inclusions
  • SETLRSRANGE
Close Window
X

Special Pixels: LRSMAX


Description

Maximum valid value. Anything above this value will be set to HRS.

Type double
Inclusions
  • SETLRSRANGE
Close Window