cv2.houghcircles()是否执行高斯模糊?

发布于 2025-01-26 02:47:08 字数 318 浏览 0 评论 0原文

这是对另一个用户问题的扩展,询问是否有必要在使用cv2.canny()之前必须执行高斯模糊。我从文档中知道Cv2.houghcircles()称为Canny Edge检测器(大概是Cv2.canny())。根据用户的问题,我需要使用默认的SOBEL内核大小的高斯模糊。 cv2. -houghcircles是否将默认的sobel内核大小调用cv2.canny()?如果是这样,cv2.houghcircles()方法是否已经隐含使用高斯模糊?

提前致谢!

This is an extension to another user’s question asking whether it is necessary to perform a Gaussian blur before using cv2.Canny(). I know from the documentation that cv2.HoughCircles() calls a Canny edge detector (presumably cv2.Canny()). Based on the user’s question, I need to use a Gaussian blur with the default Sobel kernel size. Does cv2.HoughCircles call cv2.Canny() with a default Sobel kernel size? If it does, does cv2.HoughCircles() method implicitly use a Gaussian blur already?

Thanks in advance!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

沫尐诺 2025-02-02 02:47:09

它不会执行高斯模糊。

它是
将图像馈送到houghcircles之前。

除非已经柔软,否则它也有助于平滑图像。例如,具有7x7内核和1.5x1.5 Sigma或类似模糊的Gaussianblur()可能会有所帮助。

It does not perform Gaussian Blur.

It is recommended to apply Gaussian Blur
before feeding your image to HoughCircles.

It also helps to smooth image a bit unless it's already soft. For example, GaussianBlur() with 7x7 kernel and 1.5x1.5 sigma or similar blurring may help.

In the current implementation
of OpenCV there's no Gaussian Blur call.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文