ISIS 3 Application Documentation
mask | Standard View | TOC | Home |
Set pixels to NULL using a mask cube
Description
Categories
Groups
Examples
History
Requirements
There are four ways to use the mask program; and, with all four options, listed below, you will use the PRESERVE parameter. As the name implies, you will "preserve" pixels either inside (which is the program default) or outside a given range. Preserve=inside: means the program will preserve pixels inside the provided range, and pixels that are not inside the range are nulled. Preserve=outside: means the program will preserve pixels outside the provided range, and pixels that are not outside the range are nulled.
Three Ways to Mask:
Note that due to the way masking works, an output file will be created regardless of whether or not the mask was applied to the corresponding input. To determine the degree to which an input cube was masked, look for the "PixelsMasked" group in print.prt . If no pixels were masked, there will be a comment present which reads "No pixels were masked in this image".
Name | Description |
---|---|
FROM | Input cube to mask |
MASK | Mask cube |
TO | Output cube |
Name | Description |
---|---|
MINIMUM | Minimum value of range to mask |
MAXIMUM | Maximum value of range to mask |
PRESERVE | Indicates whether to preserve pixels inside or outside of range. |
Name | Description |
---|---|
SPIXELS | Special pixels to include as mask |
Use this parameter to select the filename. All bands within the file will be masked.
Type | cube |
---|---|
File Mode | input |
Filter | *.cub |
Use this parameter to select the filename to be used as the mask. If you enter a multiband cube you must specify the band. If this parameter is not explicitly entered, each band of the FROM cube will be used as its own mask.
Type | cube |
---|---|
File Mode | input |
Internal Default | NULL |
Filter | *.cub |
This file will contain the results of the masked cube
Type | cube |
---|---|
File Mode | output |
This defines the minimum range of valid data in the mask cube.
Type | double |
---|---|
Internal Default | ISIS minimum |
Less Than or Equal |
|
This defines the maximum range of valid data in the mask cube.
Type | double |
---|---|
Internal Default | ISIS maximum |
Greater Than or Equal |
|
This parameter indicates whether the pixels chosen to mask are within the range given or outside the range given. If INSIDE, pixels inside of given range will be preserved, and if OUTSIDE, pixels outside the range will be masked.
Type | string | |||||||||
---|---|---|---|---|---|---|---|---|---|---|
Default | INSIDE | |||||||||
Option List: |
|
This indicates which special pixel values are to be included as valid pixels in the mask. For example, a NULL in the mask cube will cause the output to be NULL if the NULL or ALL option is selected. If NONE is selected, then the input pixel will be propagated to the output cube.
Type | string | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Default | NULL | ||||||||||||
Option List: |
|
An example of using a single band from the input cube as a mask.
Example GUI An example of how to run this program using the GUI. |
Input image for mask
Parameter Name:
FROM This is the input image for the mask example. |
Output image for mask
Parameter Name:
TO This is the output image that results. You can see that band 1 has been cropped to the same length as band 9. |
An example of not specifying a mask.
Example GUI An example of how to run this program using the GUI. |
Input image for mask
Parameter Name:
FROM This is the input image for the mask example. |
Output image for mask
Parameter Name:
TO This is the output image that results. |
Kris Becker | 1990-12-03 | Original version |
Tracie Sucharski | 2002-06-19 | Ported to Isis 3.0 |
Kim Sides | 2003-05-13 | Added application test |
Stuart Sides | 2003-05-16 | Modified schema location from astogeology... to isis.astrogeology..." |
Stuart Sides | 2003-07-29 | Modified filename parameters to be cube parameters where necessary |
Sharmila Prasad | 2009-08-24 | Set Internal Default for "MASK" to be "FROM" |
Steven Lambright | 2010-10-13 | Removed printf and now respecting cube attributes set on input cube |
Kimberly Oyama | 2014-03-03 | Made default MASK parameter work when FROM cube has multiple bands. Updated Documentation. Added examples. Fixes #1871. |
Andrew Stebenne | 2015-03-22 | Specify that an output cube will be created whether or not the mask was applied. Add an output group to print.prt to indicate how many pixels were masked in the output image. Implements recommendation #898. |