logo Canny Edge Detection

The Canny edge detection method looks for the edges of objects, and so can be very useful for images with solid regions, where you only want to vectorise the outlines. The Canny method employs more mathematics than the simple edge detection method, and modifying the settings can improve the results. This method will attempt to find boundaries between poorly defined objects as well as hard edges. The Canny method does not fully thin the image, so it is often necessary to run a Stentiford, Zhang Suen or Best Combination thinning after performing the edge detection. NOTE: the Canny method uses a lot of memory during processing, so may not be appropriate if for very large rasters, or if memory is low.

Canny Opions

On the Image menu select the Set Canny's Parameters option.

Gaussian Standard Deviation

This value determines the spread of pixels over which an edge will be tested.
For a black and white image, or an image with very obvious edges, use a value of 1 in this box.
For an image with less crisp edges a value of 2 or 3 may give better results.
For a photograph, or image with smooth changes in tone a value of 4 or 5 will probably yield best results.
Values higher than 5 tend not to produces useful results.

Hysteresis Threshold of Edge Pixels

These values are for the post-processing of the edge detection process. The main Canny process produces a large amount of possible edge pixels, each assigned a probability of usefulness.

There are two values here. The High value determines how high a pixel's probability must be for it be considered part of an actual edge by the post processing. The Low value determines how low the neighbouring pixel's probability must be for it not be be considered part of the same edge.

Therefore, setting High higher reduces the number of edges detected, leaving only the most obvious edges. Setting High lower increases the number of edges produced, but can result in huge numbers of undesirable 'edge' pixels. A value of 50 would be very high and leave only the most obvious edges, whereas a value of 5 allows most of the edges to remain.

Setting Low higher reduces the extent of the edges which are detected, possibly causing the edges to be more broken. Whereas, setting Low lower increases the extent of the edges, but may produces edge lines where edges are not required. This value need not be set higher than the High value. Leave this value fairly low (about 3) unless you are getting edges which extend further than you require.

There is one further possibility: set the High value lower than the Low value. This will cause WinTopo to ignore the values in the boxes, but instead examine the pixel probabilities over the entire image and calculate its own best values for High and Low. This will usually yield reasonable results, but often, you will get the best results by experimenting yourself with the values, because the best results are rather subjective to the viewer.


Related Topics: