SpatialFilterType property (ILEADRasterDlgImgEfx)

Visual Basic example

Visual C++ example

 

Syntax

SpatialFilterConstants SpatialFilterType

Overview

Refer to Using Imaging Common Dialogs

Remarks

Gets or sets the spatial filter type used with the Spatial Filter dialog boxes.

If a user selects a spatial filter from one of the Spatial filter dialog boxes, the SpatialFilterType property is set to a value that corresponds to the filter chosen.

The Spatial filter dialog boxes are:

ShiftDifferenceFilter dialog box:

The spatial filter applies shift-and-difference edge detection. All pixels not on the detected edges are changed to black. Choose the appropriate value for diagonal, horizontal, or vertical detection. Possible values are:
SHIFTDIFF_DIAG
SHIFTDIFF_HORZ
SHIFTDIFF_VERT

GradientFilter dialog box:

Gradient filters detect edges. All pixels not on the detected edges are changed to black. Choose the appropriate value for the direction of the effect. Possible values are:
GRADIENT_N
GRADIENT_NE
GRADIENT_E
GRADIENT_SE
GRADIENT_S
GRADIENT_SW
GRADIENT_W
GRADIENT_NW

LaplacianFilter dialog box:

Laplacian filters apply Laplacian line detection. There are three omnidirectional filters and three bi-directional ones. All pixels not on the detected lines are changed to black. Possible values are:
LAPLACE_1
LAPLACE_2
LAPLACE_3
LAPLACE_DIAG
LAPLACE_HORZ
LAPLACE_VERT

SobelFilter dialog box:

Sobel filters apply Sobel edge detection. All pixels not on the detected edges are changed to black. (The usage is the same as Prewitt, but the algorithm is different.) Choose the appropriate value for horizontal or vertical detection. Possible values are:
SOBEL_HORZ
SOBEL_VERT

PrewittFilter dialog box:

The Prewitt filter applies Prewitt edge detection. All pixels not on the detected edges are changed to black. (The usage is the same as Sobel, but the algorithm is different.) Choose the appropriate value for horizontal or vertical detection. Possible values are:
PREWITT_HORZ
PREWITT_VERT

LineSegmentFilter dialog box:

The Line Segment filter applies line segment line detection. You can use this filter to find line discontinuities in an image. All pixels not on the detected line segments are changed to black. Choose the appropriate value for horizontal, vertical, left-to-right diagonal, or right-to-left diagonal detection. Possible values are:
LINESEG_HORZ
LINESEG_VERT
LINESEG_LTOR
LINESEG_RTOL

See Also

Elements

SpatialFilter, ShowShiftDifferenceFilterDlg, ShowGradientFilterDlg, ShowLaplacianFilterDlg, ShowSobelFilterDlg, ShowPrewittFilterDlg, ShowLineSegmentFilterDlg