SOBEL Function

Performs a Sobel edge enhancement of an image.

Usage

Input Parameters

Returned Value

Keywords


NOTE: For horizontal line enhancement only, set the keyword Row = 0 to disable the vertical line enhancement.

TIP: Use the No_Clip keyword to avoid overflow conditions.

Return = 'abs' Return = 'phase' Return = 'value'
Col = 1,Row = 0 ABS(col grad) Invalid Condition column gradient
Col = 0,Row = 1 ABS(row grad) Invalid Condition row gradient
Col = 1,Row = 1 ABS(row grad)+ABS(col grad) ATAN(row grad ÷ col grad), data type is double Invalid Condition
Col = 0,Row = 0 Invalid Condition Invalid Condition Invalid Condition


NOTE: For vertical line enhancement only, you must disable the horizontal line enhancement by setting the Col keyword to 0.

Discussion


CAUTION: Because the result image is saved in integer format, large original data values will cause overflow. Overflow occurs when the absolute value of the result is larger than 32,767. Use the No_Clip keyword to avoid overflow.

Sample Usage

Example

Figure 2-119 The SOBEL function has been used with this 512-by-512 aerial image to make the edges stand out with sharp contrast.

Figure 2-120 The SOBEL function has been used with this 512-by-512 aerial image to make the edges stand out with sharp contrast.

See Also





doc@boulder.vni.com
Copyright © 1999, Visual Numerics, Inc. All rights reserved.