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


median

Printer Friendly View | TOC | Home

Set pixels to median 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 median pixel value in the boxcar, and sets the output center pixel to that median value. This will acheive a "blurring" effect, similar to the lowpass filter.

Categories


History

Brendan George2005-11-04 Original version
Brendan George2006-06-05 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. This value must be odd and cannot exceed twice the number of samples in the cube. Note that the larger the boxcar size, the slower the program will run. The size of the boxcar will also have an impact on the blurring effect. The larger the boxcar, the greater the blurring.

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. This value must be odd and cannot exceed twice the number of lines in the cube. Note that the larger the boxcar size, the slower the program will run. The size of the boxcar will also have an impact on the blurring effect. The larger the boxcar, the greater the blurring.

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 filtered or skipped over, 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 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, if there are not enough valid pixels in the boxcar to meet the minimum requirement. The default is to replace it with the current value, and the other option will 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 the input value if there are not enough valid pixels to meet the minimum requirement.
NULL Pixel value NULL This sets the center pixel of the boxcar to the special pixel value of NULL, if there are not enough valid pixels to meet minimum requirement.
Close Window
X

Non-Special Pixel Filtering: FILTER


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 median will only be calculated from pixel values between LOW and HIGH.
INSIDE Filter Piexls Between Low and High This option filters only those pixels with values between LOW and HIGH, as well as any Special Pixels indicated by the user, and the median will only be calculated from pixel values between LOW and HIGH.
OUTSIDE Filter Pixels Outside Low and High This option filters only those pixels with values outside LOW and HIGH, as well as any Special Pixels indicated by the user, and the median will only be calculated from pixel values between LOW and HIGH.
Close Window
X

Special Pixel Filtering: NULL


Description

This determines whether NULL pixels are considered valid for the purposes of filtering. This, along with the user input in the "Filter Style" section, will determine whether NULL pixels are included in the filter.

Type boolean
Default TRUE
Close Window
X

Special Pixel Filtering: HRS


Description

This determines whether HRS pixels are considered valid for the purposes of filtering. This, along with the user input in the "Filter Style" section, will determine whether HRS pixels are included in the filter.

Type boolean
Default TRUE
Close Window
X

Special Pixel Filtering: HIS


Description

This determines whether HIS pixels are considered valid for the purposes of filtering. This, along with the user input in the "Filter Style" section, will determine whether HIS pixels are included in the filter.

Type boolean
Default TRUE
Close Window
X

Special Pixel Filtering: LRS


Description

This determines whether LRS pixels are considered valid for the purposes of filtering. This, along with the user input in the "Filter Style" section, will determine whether LRS pixels are included in the filter.

Type boolean
Default TRUE
Close Window
X

Special Pixel Filtering: LIS


Description

This determines whether LIS pixels are considered valid for the purposes of filtering. This, along with the user input in the "Filter Style" section, will determine whether LIS pixels are included in the filter.

Type boolean
Default TRUE
Close Window