EdgeDetector method (Main Control)

Visual Basic example
Visual C++ 5.0 example

Syntax short EdgeDetector(short iThreshold, short iFilter);

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 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.

See Also

Elements:  Combine method, IntensityDetect method, Sharpen method, SpatialFilter method

Topics:  Raster Images: Filtering Images