EdgeDetectorExt method (ILEADRasterProcess)

Visual Basic example

Visual C++ 5.0 example

 

Syntax

short EdgeDetectorExt(ILEADRaster *pRaster, short lThreshold, EdgeDetectorConstants Filter);

Overview

Refer to Detecting and Enhancing Edges and Lines.

Remarks

(Document only) Applies the specified edge filter to the bitmap.

Filters such as Sobel filter, Prewitt filter, Laplacian filter, and Gradient filter are used to determine the pixels belonging to edges in the bitmap.

This method can process the whole image or a region of the image.

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

The threshold range for the 16, 48, and 64-bit bitmaps is from 0 to 65535 and for 12-bit bitmaps from 0 to 4095. Otherwise, it is from 0 to 255. The threshold is applied on channels separately.

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:

Combine method, IntensityDetect method, Sharpen method, SpatialFilter method, EdgeDetectort method

Topics:

Raster Images: Filtering Images