-
Book Overview & Buying
-
Table Of Contents
Hands-On Image Processing and Computer Vision with Python - Second Edition
By :
While classical detectors such as Sobel, Prewitt, and Canny are fast and intuitive, they rely on manually designed filters and often fail in scenarios with complex textures, lighting changes, or noise. Deep learning, particularly convolutional neural networks (CNNs), has brought about a paradigm shift in edge detection. Instead of manually engineering filters, deep models learn them directly from annotated datasets, making them more adaptable to real-world scenarios. This section introduces two prominent deep learning-based edge detectors, Holistically-Nested Edge Detection (HED) and Pixel Difference Network (PiDiNet), and demonstrates their usage via pretrained models available on Hugging Face.
Let
be a color image defined over the spatial domain
. The goal of edge detection is to learn a mapping
, where
represents the probability of an edge at each pixel. The learning problem is formalized as a binary...
Change the font size
Change margin width
Change background colour