SpatialFilterType property (LEADDlgImgEffect Control)

C++ Builder example

Delphi 4.0 example

 

Builder Syntax

L_UINT SpatialFilterType

Delphi Syntax

SpatialFilterType: L_UINT

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:

 

FLT_SHIFTDIFF_DIAG

 

FLT_SHIFTDIFF_HORZ

 

FLT_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:

 

FLT_GRADIENT_N

 

FLT_GRADIENT_NE

 

FLT_GRADIENT_E

 

FLT_GRADIENT_SE

 

FLT_GRADIENT_S

 

FLT_GRADIENT_SW

 

FLT_GRADIENT_W

 

FLT_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:

 

FLT_LAPLACE_1

 

FLT_LAPLACE_2

 

FLT_LAPLACE_3

 

FLT_LAPLACE_DIAG

 

FLT_LAPLACE_HORZ

 

FLT_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:

 

FLT_SOBEL_HORZ

 

FLT_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:

 

FLT_PREWITT_HORZ

 

FLT_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:

 

FLT_LINESEG_HORZ

 

FLT_LINESEG_VERT

 

FLT_LINESEG_LTOR

 

FLT_LINESEG_RTOL

See Also

Elements:

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

Topics:

Imaging Common Dialogs: Properties, Methods, and Events