Description This function will find edges on the input image by the Gary Regent edge detection method. This function works for 8 and 24 bit per pixel images. Gary Regent edge-detection is a region growing based edge detection method. Detected edges are usually topologically circles (closed arcs without intersections). Region growing can be tuned with iMaxDiff parameter. The smaller the iMaxDiff parameter is, the more regions rise. In case of color images, the Red, Green and Blue values of a pixel should be transformed to only one value. The lpNormOp parameter is a handler of a transformator function implemented by the user, or NULL. In this case a default transformator function is used (square mean values). If the input image has too sawtooth local distributions, a high number of regions can be rised, and too much edges will be found. In this case, choose a larger iMaxDiff value. If iMaxDiff is negative, Bryant difference will be used (square means normalized to .
Examples
The original 500 x 400 pixel image and the Gary Regent edge detected image with iMaxDiff = 25 parameter value.
Syntax RetVal = [BiFilter.]FilterEdgeGR hDib iMaxDiff bShowDialog
Returns RetVal LONGLONG The handle of new filtered DIB, 0 if an error occurred, or -1 if the BIFilter.dll does not installed.
Remarks hDib LONGLONG Handle of the image to filter.
iMaxDiff short The maximum difference between two neighbouring pixels in the same region. If iMaxDiff less than zero, Bryant difference will be used (square mean of all adjacent pixel differences normalized to )
bShowDialog BOOL Smoothing factor used by the IESF filtering. See the description and examples above for further information and a possible value.
See Also