Implement Canny Edge Detection from Scratch with Pytorch
source link: https://towardsdatascience.com/implement-canny-edge-detection-from-scratch-with-pytorch-a1cccfa58bed?gi=a1063a7d1864
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Canny Edge Detection
The Canny filter is certainly the most known and used filter for edge detection. I will explain step by step the canny filter for contour detection . Step by step because the canny filter is a multi-stage filter . The Canny filter is rarely integrated in a Deep Learning model. So I will describe the different parts and at the same time implement it with Pytorch . It can be customized almost without limit, I have allowed myself some deviations.
Convolution between an input image and a kernel
Let me introduce what a convolution matrix (or kernel ) is. A convolution matrix describes a filter that we are going to pass over an input image. To make it simple, the kernel will move over the whole image, from left to right, from top to bottom by applying a convolution product . The output of this operation is called a filtered image .
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK