Manages a complete context for the Canny edge detector. More...
#include <eVision/EasyImage/ECannyEdgeDetector.h>
Public Member Functions | |
| ECannyEdgeDetector () | |
| Constructs a ECannyEdgeDetector object initialized to its default values. | |
| virtual | ~ECannyEdgeDetector () throw () |
| void | SetSmoothingScale (float scale) |
| The scale of the features of interest. | |
| float | GetSmoothingScale () const |
| The scale of the features of interest. | |
| void | ResetSmoothingScale () |
| Prevents the smoothing of the source image by a Gaussian filter. | |
| void | SetThresholdingMode (eVision::ECannyThresholdingMode mode) |
| Sets the mode of the hysteresis thresholding. | |
| eVision::ECannyThresholdingMode | GetThresholdingMode () const |
| Returns the mode of the hysteresis thresholding. | |
| void | SetLowThreshold (float lowThreshold) |
| Sets the low hysteresis threshold for a pixel to be considered as an edge. | |
| float | GetLowThreshold () const |
| Returns the low hysteresis threshold for a pixel to be considered as an edge. | |
| void | SetHighThreshold (float highThreshold) |
| Sets the high hysteresis threshold for a pixel to be considered as an edge. | |
| float | GetHighThreshold () const |
| Returns the high hysteresis threshold for a pixel to be considered as an edge. | |
| void | Apply (const eVision::EROIBW8 &source, eVision::EROIBW8 &result) |
| Apply the Canny edge detector on an image/ROI. | |
| void | Apply (const eVision::EROIBW8 &source, const eVision::ERegion ®ion, eVision::EROIBW8 &result) |
| Apply the Canny edge detector on an image/ROI. | |
| void | Apply (const eVision::EROIBW8 &source, const eVision::ERegion ®ion, const eVision::EFrame &frame, eVision::EROIBW8 &result) |
| Apply the Canny edge detector on an image/ROI. | |
| ECannyEdgeDetector (CppWrapperInternal::InternalConstructor) | |
Public Attributes | |
| CppWrapperInternal::WrappedClass | wrappedClass_ |
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
| eVision::ECannyEdgeDetector::ECannyEdgeDetector | ( | ) |
Constructs a ECannyEdgeDetector object initialized to its default values.
|
virtual | ||||||||||||
| eVision::ECannyEdgeDetector::ECannyEdgeDetector | ( | CppWrapperInternal::InternalConstructor | ) |
| void eVision::ECannyEdgeDetector::Apply | ( | const eVision::EROIBW8 & | source, |
| const eVision::ERegion & | region, | ||
| const eVision::EFrame & | frame, | ||
| eVision::EROIBW8 & | result ) |
Apply the Canny edge detector on an image/ROI.
| source | The source image/ROI. |
| region | The region on which to apply the method. |
| frame | The reference frame of the region. |
| result | The output image/ROI. |
The output ROI must have the same size than the input ROI.
| void eVision::ECannyEdgeDetector::Apply | ( | const eVision::EROIBW8 & | source, |
| const eVision::ERegion & | region, | ||
| eVision::EROIBW8 & | result ) |
Apply the Canny edge detector on an image/ROI.
| source | The source image/ROI. |
| region | The region on which to apply the method. |
| result | The output image/ROI. |
The output ROI must have the same size than the input ROI.
| void eVision::ECannyEdgeDetector::Apply | ( | const eVision::EROIBW8 & | source, |
| eVision::EROIBW8 & | result ) |
Apply the Canny edge detector on an image/ROI.
| source | The source image/ROI. |
| result | The output image/ROI. |
The output ROI must have the same size than the input ROI.
| float eVision::ECannyEdgeDetector::GetHighThreshold | ( | ) | const |
Returns the high hysteresis threshold for a pixel to be considered as an edge.
| float eVision::ECannyEdgeDetector::GetLowThreshold | ( | ) | const |
Returns the low hysteresis threshold for a pixel to be considered as an edge.
| float eVision::ECannyEdgeDetector::GetSmoothingScale | ( | ) | const |
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.
| eVision::ECannyThresholdingMode eVision::ECannyEdgeDetector::GetThresholdingMode | ( | ) | const |
Returns the mode of the hysteresis thresholding.
| void eVision::ECannyEdgeDetector::ResetSmoothingScale | ( | ) |
Prevents the smoothing of the source image by a Gaussian filter.
Calling this method is equivalent to set ECannyEdgeDetector::SetSmoothingScale to zero. It disables the use of the Gaussian filter.
| void eVision::ECannyEdgeDetector::SetHighThreshold | ( | float | highThreshold | ) |
Sets the high hysteresis threshold for a pixel to be considered as an edge.
| highThreshold | The high threshold. |
| void eVision::ECannyEdgeDetector::SetLowThreshold | ( | float | lowThreshold | ) |
Sets the low hysteresis threshold for a pixel to be considered as an edge.
| lowThreshold | The low threshold. |
| void eVision::ECannyEdgeDetector::SetSmoothingScale | ( | float | scale | ) |
The scale of the features of interest.
| scale | The width of the Gaussian kernel, or zero if the Gaussian smoothing is disabled. |
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.
| void eVision::ECannyEdgeDetector::SetThresholdingMode | ( | eVision::ECannyThresholdingMode | mode | ) |
Sets the mode of the hysteresis thresholding.
| mode | The thresholding mode. |
If the threshold mode is set to ECannyThresholdingMode::ECannyThresholdingMode_Absolute, the threshold values are interpreted as absolute thresholds. In this case, the thresholds must be strictly positive real values.
If the threshold mode is set to ECannyThresholdingMode::ECannyThresholdingMode_Relative, the thresholds are expressed as a fraction ranging from 0 to 1 of the maximum value of the gradient of the source image.
In either case, the low threshold must be less than the high threshold.
| CppWrapperInternal::WrappedClass eVision::ECannyEdgeDetector::wrappedClass_ |