Converts current color image to black/white (1 bit) with a Shen-Castan (ISEF) edge detection algorithm.
Shen-Castan algorithm convolves the image with the Infinite Symmetric Exponential Filter, computes the binary Laplacian image, suppresses false zero crossing, performs adaptive gradient thresholding, and, finally, also applies hysteresis thresholding. (Algorithms for Image Processing and Computer Vision J.R.Parker).
Assembly: IEvolution2 (in IEvolution2.dll) Version: 10.1.0.0
Syntax
C# | Visual Basic | Visual C++ |
public void EdgeDetect_ShenCastan( double ratio, double smooth, int windowSize, int thinFactor, bool doHysteresis )
Public Sub EdgeDetect_ShenCastan ( _ ratio As Double, _ smooth As Double, _ windowSize As Integer, _ thinFactor As Integer, _ doHysteresis As Boolean _ )
public: void EdgeDetect_ShenCastan( double ratio, double smooth, int windowSize, int thinFactor, bool doHysteresis )
Parameters
- ratio
- Double
percent of pixels to be above High threshold (suggested 0.99)
- smooth
- Double
smoothing factor (suggested 0.9)
- windowSize
- Int32
size of window for adaptive gradient (suggested 7)
- thinFactor
- Int32
thinning factor (suggested 0)
- doHysteresis
- Boolean
if true tun on the hysteresis thresholding (suggested true)