findContours 是否内置了边缘检测功能?
Is findContours built in with edge detection?
OpenCV 或 EMGUCV 中的 findContours() 是否内置了边缘检测功能?如果是,算法是什么?
因为没有调用任何边缘检测函数,它可以检测图像的边缘。
边缘被计算为图像梯度在梯度方向上的极值点,轮廓通常从边缘获得,但它们的目标是成为对象轮廓。因此,它们需要是闭合曲线。
findContours
仅从二值图像中检索轮廓。当然,您可以将它与边缘检测混合使用,即应用 findContours
on the output of Canny
as in the example Finding contours in your image
OpenCV 或 EMGUCV 中的 findContours() 是否内置了边缘检测功能?如果是,算法是什么?
因为没有调用任何边缘检测函数,它可以检测图像的边缘。
边缘被计算为图像梯度在梯度方向上的极值点,轮廓通常从边缘获得,但它们的目标是成为对象轮廓。因此,它们需要是闭合曲线。
findContours
仅从二值图像中检索轮廓。当然,您可以将它与边缘检测混合使用,即应用 findContours
on the output of Canny
as in the example Finding contours in your image