DirectionEdgeStatistical Method (ILEADRasterProcess)

Visual Basic example

Visual C++ 5.0 example

 

Syntax

short DirectionEdgeStatistical (ILEADRaster* pRaster, long lDim, long lThreshold, short iAngle, OLE_COLOR crEdgeColor, OLE_COLOR crBkColor)

Overview

Refer to Detecting and Enhancing Edges and Lines

Remarks

Detects the variation of colors in the specified direction using statistical indices. It is similar to EdgeDetectStatistical, but this method allows you to specify the direction angle.

The edges are detected by applying a statistical filter that analyzes the variations of colors in a specified direction around each pixel.

Support for 12 and 16-bit grayscale and 48 and 64-bit color images is available only in the Document/Medical toolkits.

This method does not support signed data images. It returns the error code ERROR_SIGNED_DATA_NOT_SUPPORTED if a signed data image is passed to this method.

See Also

Elements:

SpatialFilter method, EdgeDetector method, DirectionEdgeStatistical method, MathFunction method

Topics:

Raster Images: Filtering Images

 

Using Color Values in LEADTOOLS