Canny Edge Detection, non-maximum suppression

I am trying to implant Canny Edge Detection algorithm.
I started first with decomposing it using matlab functions.
function [newImg, tgTeta] = edgeDetectMatlab(img)
newImg=zeros(size(img));
tgTeta=zeros(size(img));
smoothImg=imgaussfilt(img,1.4);
[fx,fy]=imgradientxy(img);
tgTeta=imgradient(img);
end
I know that 2 steps are missing: non-maximum suppression and double threshold, but how can I do an non-maximum suppression?

댓글 수: 1

There is a Canny method in the edge() function. Why not use that?

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Image Segmentation and Analysis에 대해 자세히 알아보기

질문:

2018년 12월 24일

댓글:

2018년 12월 24일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by