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


mode

Printer Friendly View | TOC | Home

Set pixels to mode of surrounding pixel values

Overview Parameters Example 1 Example 2

Description

This program accepts a user-defined boxcar and loops through the input image. It finds the mode pixel value in the boxcar, and sets the center pixel value to that mode value. If the boxcar is poly-modal, the filter writes the lowest of the mode values to the center

Categories


History

Brendan George2005-11-21 Original version
Brendan George2006-06-06 Added Minopt parameter, modified user interface.
Brendan George2006-06-19 Modified user interface

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
X

Files: FROM


Description

This is the cube from which we will gather our data.

Type cube
File Mode input
Filter *.cub
Close Window
X

Files: TO


Description

This is the cube to which we will write the modified data.

Type cube
File Mode output
Filter *.cub
Close Window
X

Boxcar Size: SAMPLES


Description

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

Boxcar Size: LINES


Description

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

Boxcar Settings: LOW


Description

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

Boxcar Settings: HIGH


Description

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

Boxcar Settings: MINOPT


Description

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:
Option Brief Description
COUNT Minimum valid pixel count This option indicates that the minimum is a minimum count of pixels required for filtering.
PERCENTAGE Minimum valid pixel percentage This option indicates the the minimum parameter is to be interpreted as a percentage of the total pixels in the boxcar.
Close Window
X

Boxcar Settings: MINIMUM


Description

This option is the minimum number of valid pixels required in a boxcar for filtering to begin.

Type double
Default 1
Close Window
X

Boxcar Settings: REPLACEMENT


Description

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:
Option Brief Description
CENTER Center pixel value This sets the center pixel of the boxcar to whatever was already there, in the event that there are not enough non-Special pixels to meet minimum requirements.
NULL Pixel value Null This sets the center pixel of the boxcar to the special pixel value fo "Null", if there are not enough non-Special pixels to meet minimum requirements.
Close Window
X

Non-Special Pixel Filtering: PIXELS


Description

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:
Option Brief Description
ALL Filter All This option filters all Non-Special pixels, regardless of value. It only filters Special Pixels indicated by the user, and the mode value is only calculated from values between LOW and HIGH.
INSIDE Filter Between Low and High This option filters only those pixels whose value lies between LOW and HIGH, as well as the Special Pixels indicated by the user.
OUTSIDE Filter Outside Low and High This option will filter only those pixels with values below LOW or above HIGH. It will filter any Special Pixels indicated by the user, and the mode value is still calculated from between LOW and HIGH.
Close Window
X

Valid Pixel Definition: NULL


Description

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

Valid Pixel Definition: HRS


Description

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

Valid Pixel Definition: HIS


Description

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

Valid Pixel Definition: LRS


Description

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

Valid Pixel Definition: LIS


Description

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