We read in an image.
>
|
|
We determine its edges using Canny edge detection.
>
|
|
We can see the edges superimposed (in green) on the original image, as follows:
>
|
|
In order to find out the thresholds used, we can either request them as output, or set the infolevel option.
>
|
|
| (5.1) |
| (5.2) |
>
|
|
CannyEdgeDetect: thresholds used for Canny edge detection are: low=0.1125, high=0.2812
| |
We can use a different operator to find the gradient by using the operator option, as follows. We also show how to explicitly specify the low and high thresholds for the last step.
>
|
|
CannyEdgeDetect: thresholds used for Canny edge detection are: low=0.2, high=0.9
| |