边缘检测函数
cvCanny
/* Runs canny edge detector */
CVAPI(void) cvCanny( const CvArr* image, CvArr* edges, double threshold1,
double threshold2, int aperture_size CV_DEFAULT(3) );
image :原图
edges:边界图(布尔图)
threshold1:阈值下限
threshold2:阈值上限
aperture_size:Sobel算子用到的中孔
原理:像素梯度大于上限,认为是边界;小于下限,去除;介于二者之间,与大于上限的点连接时认为是边界。