Professional Documents
Culture Documents
Canny Edge Detection là một thuật toán phát hiện cạnh phổ biến. Nó được phát triển
bởi John F. Canny.
Bao gồm các giai đoạn
*Nó là một thuật toán nhiều giai đoạn và chúng ta sẽ đi qua từng giai đoạn.
1. Noise Reduction
2. Finding Intensity Gradient of the Image
3. Non-maximum Suppression
4. Thresholding & Hysteresis
*Trước khi Giảm Nhiễu, ta cần chuyển ảnh sang hệ thang màu độ xám
*Kết quả:
*Ở cách tính Gradient (tìm cả độ lớn, lẫn hướng của Gradient), mình sẽ đạo hàm Bức ảnh vừa
khử nhiễu theo 2 hướng x, y. Bằng cách nhân với Sobel kernels
2. Finding Intensity Gradient of the Image:
-Identify the edge direction based on the angle value from the angle
matrix
-Check if the pixel in the same direction has a higher intensity than the
pixel that is currently processed
- Those edges which lie between these two thresholds are classified edges
or non-edges based on their connectivity.
- If they are connected to "sure-edge" pixels, they are considered to be part
of edges. Otherwise, they are also discarded