Canny edge detection
In the last chapter, we saw various high pass filters, which can be used as edge detectors. In this section, the Canny edge detection algorithm, which combines Gaussian filtering, gradient finding, non-maximum suppression, and hysteresis thresholding, is implemented using OpenCV and CUDA. High pass filters, as explained in the last chapter, are very sensitive to noise. In Canny edge detection, Gaussian smoothing is done before detecting edges, which makes it less sensitive to noises. It also has a non-maximum suppression stage after detecting edges to remove unnecessary edges from the result.
Canny edge detection is a computationally intensive task, which is hard to use in real-time applications. The CUDA version of the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access