ISIS Application Documentation
mode | Printer Friendly View | TOC | Home |
Set pixels to mode of surrounding pixel values
Overview | Parameters | Example 1 | Example 2 |
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:12 |
Parameter GroupsFiles
Boxcar Size
Boxcar Settings
Non-Special Pixel Filtering
Valid Pixel Definition
|
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:12 |
This is the cube from which we will gather our data.
Type | cube |
---|---|
File Mode | input |
Filter | *.cub |
This is the cube to which we will write the modified data.
Type | cube |
---|---|
File Mode | output |
Filter | *.cub |
This will determine how many samples the boxcar will have. The number must be an odd integer, and size often has a noticeable impact on time. It will also have an impact on the blurring effect. The larger the boxcar, the greater the blurring. The user will have to discover other effects on their own.
Type | integer |
---|---|
Minimum | 1 (inclusive) |
Odd | This value must be an odd number |
This will determine how many lines the boxcar will have. The number must be an odd integer, and size often has a noticeable impact on time. It will also have an impact on the blurring effect. The larger the boxcar, the greater the blurring. The user will have to discover other effects on their own.
Type | integer |
---|---|
Minimum | 1 (inclusive) |
Odd | This value must be an odd number |
This value indicates the minimum value of a valid pixel. If a pixel holds a value below the minimum value, it will either be excluded or included, depending on user input in the "Filter Style" area.
Type | double |
---|---|
Internal Default | Use all |
Less Than | HIGH |
This value indicates the maximum value of a valid pixel. If a pixel holds a value over the maximum value, it will either be excluded or included, depending on user input in the "Filter Style" area.
Type | double |
---|---|
Internal Default | Use all |
Greater Than | LOW |
This parameter determines whether the minimum parameter is to be interpreted as a count of pixels, or a percentage of all pixels in the boxcar.
Type | string | |||||||||
---|---|---|---|---|---|---|---|---|---|---|
Default | COUNT | |||||||||
Option List: |
|
This option is the minimum number of valid pixels required in a boxcar for filtering to begin.
Type | double |
---|---|
Default | 1 |
This determines what to put in the center pixel, in the event that there aren't enough non-special pixels in the boxcar to meet the minimum. The default is to replace it with the current value, and the other option is to replace it with NULL.
Type | string | |||||||||
---|---|---|---|---|---|---|---|---|---|---|
Default | CENTER | |||||||||
Option List: |
|
These options determine which pixels are to be included in the filtering process. ALL filters all pixels, regardless of value, VALID only filters those pixels with values between LOW and HIGH, and INVALID only filters those pixels with values outside LOW and HIGH. Note that these only determine which Non-Special pixels to filter. Also, the median will only be calculated from pixel values between LOW and HIGH.
Type | string | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Default | ALL | ||||||||||||
Option List: |
|
If the center of the boxcar is Null, and this box is checked, the pixel will be overwritten with the mode value of the boxcar as a whole. If this box is left unchecked, the pixel will be left alone.
Type | boolean |
---|---|
Default | TRUE |
If the center of the boxcar is Hrs, and this box is checked, the pixel will be overwritten with the mode value of the boxcar as a whole. If this box is left unchecked, the pixel will be left alone.
Type | boolean |
---|---|
Default | TRUE |
If the center of the boxcar is His, and this box is checked, the pixel will be overwritten with the mode value of the boxcar as a whole. If this box is left unchecked, the pixel will be left alone.
Type | boolean |
---|---|
Default | TRUE |
If the center of the boxcar is Lrs, and this box is checked, the pixel will be overwritten with the mode value of the boxcar as a whole. If this box is left unchecked, the pixel will be left alone.
Type | boolean |
---|---|
Default | TRUE |
If the center of the boxcar is Lis, and this box is checked, the pixel will be overwritten with the mode value of the boxcar as a whole. If this box is left unchecked, the pixel will be left alone.
Type | boolean |
---|---|
Default | TRUE |
Example 1Running mode with a 3x3 boxcar Description
This demonstrates running the mode program on a sample
cube.
Command Line
mode
from= peaks.cub
to=3x3mode.cub
samples=3
lines=3
This demonstrates the commands necessary to run mode on
a file named "peaks.cub" with a 3x3 boxcar. The small size
will not produce much difference.
GUI Screenshot
Input Image
Output Image |
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:12 |
Example 2Running mode with a 15x15 boxcar Description
This demonstrates running the mode program on a sample
cube.
Command Line
mode
from= peaks.cub
to=15x15mode.cub
samples=15
lines=15
This demonstrates the commands necessary to run mode on
a file named "peaks.cub" with a 15x15 boxcar. The large size
of the boxcar produces a marked effect.
GUI Screenshot
Input Image
Output Image |
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:12 |