原本今天想看霍夫变换的,opencv文档给出了霍夫变换的例子,但是用到了Canny进行边缘检测,所以就查了一些与Canny有关的资料,部分内容是摘抄自其他博客,同时也有一些自己的总结:
先给出opencv文档中对Canny的定义:
void Canny(InputArray image, OutputArray edges, double threshold1, double threshold2, int apertureSize=3, bool L2gradient=false )
Parameters:
image – Single-channel 8-bit input image.
edges – Output edge map. It has the same size and type as image .
threshold1 – First threshold for the hysteresis procedure.
threshold2 – Second threshold for the hysteresis procedure.
apertureSize – Aperture size for the Sobel() operator.
L2gradient – Flag indicating whether a more accurate L_2 norm &