CANNYOPTIONS

typedef struct CANNYOPTIONS 
{ 
   L_UINT16 uRadius; 
   L_UINT16 uLowThreshold; 
   L_UINT16 uHighThreshold; 
   L_UINT8 uChannels; 
} CANNYOPTIONS, * pCANNYOPTIONS; 

The CANNYOPTIONS structure provides options to be used by the L_CannyEdgedetectorBitmap function.

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.

See Also

Functions

Help Version 22.0.2021.9.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Raster Imaging C API Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.