CANNYOPTIONS (original) (raw)
Summary
The CANNYOPTIONS structure provides options.
Syntax
Members
L_UINT16 uRadius
Parameter used to determine the radius of the Gaussian filter used inside the L_CannyEdgedetectorBitmap function.
L_UINT16 uLowThreshold
Threshold Value used to determine the low threshold for continuing the linking process.
L_UINT16 uHighThreshold
Threshold Value used to determine the high threshold for starting the linking process.
L_UINT8 uChannels
Value used to determine the channels on which to apply the Canny filter. Possible values are:
Value | Meaning |
---|---|
CANNY_MASTER_CHANNEL | [0] Grayscale channel. |
CANNY_RED_CHANNEL | [1] Red channel. |
CANNY_GREEN_CHANNEL | [2] Green channel. |
CANNY_BLUE_CHANNEL | [4] Blue channel. |
Comments
Stores the options for the L_CannyEdgedetectorBitmap function.
The Canny filter can be applied only on the master channel if the image is gray.
It is possible to choose more than one channel from the (Red, Green, Blue) channels.
The function returns ERROR_INV_PARAMETER if the image is gray and any of the channels chosen is a colored channel.
Usage
LEADTOOLS Raster Imaging C API Help