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


minmax

Printer Friendly View | TOC | Home

Apply a minimum or maximum filter to a cube

Overview Parameters Example 1 Example 2

Description

This program will apply a minimum or maximum filter to a cube. Using the "max" option, the pixel with the highest DN in the NxM size boxcar will be output. Using the "min" option, the pixel with the lowest DN in the NxM boxcar will be output. With either option, more extreme DNs will be more noticeable in the output image.

The boxcar will be N samples long by M lines high. Assuming a 3 x 3 boxcar
    		V1  V2  V3
		V4  V5  V6
		V7  V8  V9
    
the program will first substitute an extremely high or low internal value for ISIS. This essentially zeroes out the process in such a way that one of the values in the current boxcar will be supplied as the output pixel, instead of an output pixel from a previous boxcar. Assume that the MAX option is being used on the model boxcar shown above.This value is then compared to the first pixel in the boxcar. This would be the value substituted for "V1". If V1 is greater than the internal value (this will be the case unless V1 is a special pixel) then the new output pixel will tenatively be set to V1. V1 is then compared to V2, and the greater pixel is again set to the temporary maximum. This process continues until the temporary maximum is compared to all of the values in the boxcar, at which point it is set as the output value.

Categories


History

Drew Davidson2004-07-23 Original version
Drew Davidson2004-07-26 Added application test
Drew Davidson2004-08-16 Added examples

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

Use this parameter to select the filename. All bands within the file will have the filter applied.

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

Files: TO


Description

This file will contain the filtered output.

Type cube
File Mode output
Pixel Type real
Close Window
X

Boxcar Size: LINES


Description

Use this parameter to select the number of lines in the boxcar. Higher values take longer, and intensify the results in the vertical direction. The default value is three.

Type integer
Default 3
Minimum 1 (inclusive)
Close Window
X

Boxcar Size: SAMPLES


Description

Use this parameter to select the number of samples in the boxcar. Higher values take longer, and intensify the results in the horizontal direction. The default value is three.

Type integer
Default 3
Minimum 1 (inclusive)
Close Window
X

Filter Type: FILTER


Description

Use this parameter to choose the filter type. The possibilities include min, which finds the lowest DN in the boxcar and max, which finds the highest DN in the boxcar.

Type string
Default MIN
Option List:
Option Brief Description
MINMinimum filter The minimum filter uses a variable kernel to find the pixel with the lowest DN in the boxcar.
MAXMaximum filter The maximum filter uses a variable kernel to find the pixel with the greatest DN in the boxcar
Close Window