eVision .NET API
Loading...
Searching...
No Matches
eVision.ECannyEdgeDetector Class Reference

Manages a complete context for the Canny edge detector. More...

Inheritance diagram for eVision.ECannyEdgeDetector:
Collaboration diagram for eVision.ECannyEdgeDetector:

Public Member Functions

 ECannyEdgeDetector ()
 Constructs a ECannyEdgeDetector object initialized to its default values.
void ResetSmoothingScale ()
 Prevents the smoothing of the source image by a Gaussian filter.
void Apply (eVision.EROIBW8 source, eVision.EROIBW8 result)
 Apply the Canny edge detector on an image/ROI.
void Apply (eVision.EROIBW8 source, eVision.ERegion region, eVision.EROIBW8 result)
 Apply the Canny edge detector on an image/ROI.
void Apply (eVision.EROIBW8 source, eVision.ERegion region, eVision.EFrame frame, eVision.EROIBW8 result)
 Apply the Canny edge detector on an image/ROI.

Properties

float SmoothingScale [get, set]
 The scale of the features of interest.
eVision.ECannyThresholdingMode ThresholdingMode [get, set]
 Returns the mode of the hysteresis thresholding.
float LowThreshold [get, set]
 Returns the low hysteresis threshold for a pixel to be considered as an edge.
float HighThreshold [get, set]
 Returns the high hysteresis threshold for a pixel to be considered as an edge.

Detailed Description

Manages a complete context for the Canny edge detector.

The Canny edge detector operates on a grayscale BW8 image and delivers a black-and-white BW8 image where pixels have only 2 possible values: 0 and 255. Pixels corresponding to edges in the source image are set to value 255 in the output image; The other pixels are set to value 0.

License(s): EasyImage

Constructor & Destructor Documentation

◆ ECannyEdgeDetector()

eVision.ECannyEdgeDetector.ECannyEdgeDetector ( )

Constructs a ECannyEdgeDetector object initialized to its default values.

Member Function Documentation

◆ Apply() [1/3]

void eVision.ECannyEdgeDetector.Apply ( eVision.EROIBW8 source,
eVision.ERegion region,
eVision.EFrame frame,
eVision.EROIBW8 result )

Apply the Canny edge detector on an image/ROI.

Parameters
sourceThe source image/ROI.
regionThe region on which to apply the method.
frameThe reference frame of the region.
resultThe output image/ROI.

The output ROI must have the same size than the input ROI.

◆ Apply() [2/3]

void eVision.ECannyEdgeDetector.Apply ( eVision.EROIBW8 source,
eVision.ERegion region,
eVision.EROIBW8 result )

Apply the Canny edge detector on an image/ROI.

Parameters
sourceThe source image/ROI.
regionThe region on which to apply the method.
resultThe output image/ROI.

The output ROI must have the same size than the input ROI.

◆ Apply() [3/3]

void eVision.ECannyEdgeDetector.Apply ( eVision.EROIBW8 source,
eVision.EROIBW8 result )

Apply the Canny edge detector on an image/ROI.

Parameters
sourceThe source image/ROI.
resultThe output image/ROI.

The output ROI must have the same size than the input ROI.

◆ ResetSmoothingScale()

void eVision.ECannyEdgeDetector.ResetSmoothingScale ( )

Prevents the smoothing of the source image by a Gaussian filter.

Calling this method is equivalent to set ECannyEdgeDetector.SmoothingScale to zero. It disables the use of the Gaussian filter.

Property Documentation

◆ HighThreshold

float eVision.ECannyEdgeDetector.HighThreshold
getset

Returns the high hysteresis threshold for a pixel to be considered as an edge.

◆ LowThreshold

float eVision.ECannyEdgeDetector.LowThreshold
getset

Returns the low hysteresis threshold for a pixel to be considered as an edge.

◆ SmoothingScale

float eVision.ECannyEdgeDetector.SmoothingScale
getset

The scale of the features of interest.

This scale corresponds to the standard deviation of the Gaussian filter that is used to smooth the source image before the computation of the gradient, hereby selecting the scale of the features of interest.

If this scale is set to zero, no smoothing is achieved: The gradient is computed directly on the raw source image, speeding up the detector, but making the process much less reliable.

◆ ThresholdingMode

eVision.ECannyThresholdingMode eVision.ECannyEdgeDetector.ThresholdingMode
getset

Returns the mode of the hysteresis thresholding.