gradient
Apply Sobel or Roberts gradient to a cube
Categories
History
Tracie Sucharski | 2002-12-18 | Original version |
Kim Sides | 2003-05-13 | Added application test |
Stuart Sides | 2003-05-16 | Modified schema location from astogeology... to isis.astrogeology..." |
Stuart Sides | 2003-07-29 | Modified filename parameters to be cube parameters where necessary |
Drew Davidson | 2005-08-16 | Added examples |
Brendan George | 2005-11-07 | Modified to handle Special Pixels |
Ian Humphrey | 2015-05-18 | Added METHOD parameter to allow for either exact or approximate calculation of the gradient magnitude. Updated and added tests. Updated documentation. Fixes #1741. |
Parameters
Files
Type | cube |
---|---|
File Mode | input |
Filter | *.cub |
Type | cube |
---|---|
File Mode | output |
Pixel Type | real |
Gradient Settings
Type | string | |||||||||
---|---|---|---|---|---|---|---|---|---|---|
Default | SOBEL | |||||||||
Option List: |
|
Type | string | |||||||||
---|---|---|---|---|---|---|---|---|---|---|
Default | APPROXIMATE | |||||||||
Option List: |
|
Example 1
Applying a sobel filter
Command Line
gradient
from= peaks.cub
to=sobelPeaks.cub
gradtype=sobel
GUI Screenshot
Example GUI
gradient guiScreenshot of the GUI with parameters set to filter using a sobel configuration
Input Image
Input image before the filter.
The image before the filter
Parameter Name:
FROM
This is the image as it was taken originally.
Output Image
Example 2
Applying a roberts filter
Command Line
gradient
from= peaks.cub
to=robertsPeaks.cub
gradtype=roberts
GUI Screenshot
Example GUI
gradient guiScreenshot of the GUI with parameters set to filter using a roberts gradient
Input Image
Input image before the filter.
The image before the filter
Parameter Name:
FROM
This is the image as it was taken originally.
Output Image
Output image after the roberts gradient
The image after the filter
Parameter Name:
TO
The use of the Roberts gradient here creates an output image which helps to highlight the edges. Since the Roberts filter uses a smaller boxcar, less of the image is taken into consideration at each processing step and thus the image can be created faster. The tradeoff is that images that have had the Roberts gradient applied tend be effected more by noise in the image.