ISIS Application Documentation
gradient | Printer Friendly View | TOC | Home |
Apply Sobel or Roberts gradient to a cube
Overview | Parameters | Example 1 | Example 2 |
Description
This program will apply a Sobel or Roberts gradient filter to a cube.
These gradient filters will highlight edges of an image. Gradient filters typically are used
to highlight the differences in the brightness of adjacent pixels in a cube, and also the
edges of the transitions in the image data.
The output will contain the calculated magnitude of the spatial graident of the input cube.
The calculation method can be set to either exact or approximate and can be
specified with the 'METHOD' parameter.
NOTE: When a calculation must be done where one or more values are
special pixels, the output will be NULL. If this causes unexpected
results, you can run stretch to change ithe input special pixel(s) to
a Digital Number (DN) that is appropriate for calculation.
For example, if the image contains High Instrument Saturation (HIS)
values, you may choose to stretch these to 255 prior to running the gradient filter.
CategoriesHistory
|
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:10 |
Parameter GroupsFiles
Gradient Settings
|
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:10 |
Use this parameter to select the filename. All bands within the file will have the gradient applied.
Type | cube |
---|---|
File Mode | input |
Filter | *.cub |
This file will contain the estimated or exact absolute magnitude of the gradient.
Type | cube |
---|---|
File Mode | output |
Pixel Type | real |
This chooses the gradient type. The possibilities are Sobel, which uses a 3 x 3 boxcar to calculate the gradient magnitude, or Roberts, which uses a 2 x 2 boxcar to calculate the gradient magnitudes.
Type | string | |||||||||
---|---|---|---|---|---|---|---|---|---|---|
Default | SOBEL | |||||||||
Option List: |
|
This specifies how the gradient magnitudes are calculated. The possibilities are exact, which uses the square root of the sum of squares, or approximate, which uses the sum of absolutes.
Type | string | |||||||||
---|---|---|---|---|---|---|---|---|---|---|
Default | APPROXIMATE | |||||||||
Option List: |
|
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:10 |
Example 2Applying a roberts filter DescriptionCommand Line
gradient
from= peaks.cub
to=robertsPeaks.cub
gradtype=roberts
This example shows the use of the roberts filter in order to highlight
edges
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:10 |