一般步骤:(1)滤波(2)增强(3)检测
1 Canny()函数
void Canny(InputArray image,OutputArray edges,double threshold1,double threshold2,int apertureSize=3,bool L2gradient=false)
2 sobel算子
void Sobel(InputArray src,OutputArray dst,int ddepth,int dx,int dy,int ksize=3,double scale=1,double delta=0,int borderType=BORDER_DEFAULT);
{{uploading-image-829012.png(uploading...)}}
原文:https://www.cnblogs.com/shuguomeifuguo/p/11992362.html