【问题标题】:having difficulties finding the radius of the circle难以找到圆的半径
【发布时间】:2011-10-28 20:18:20
【问题描述】:

http://imageshack.us/photo/my-images/189/unledgev.png/

我在找到这个圆的半径时遇到了问题。我将原始图像转换为灰度并执行边缘检测操作。 我使用 Aforge.net API 将 circuler Hough 变换应用于此边缘图像。但在应用霍夫变换之前,我需要给出我想要找到的圆半径。问题是我需要找到车轮的圆半径或直径。有人有什么想法吗?

private void Hough(Bitmap xx)
{
    HoughCircleTransformation circleTransform = new HoughCircleTransformation(35);
    // apply Hough circle transform
    circleTransform.ProcessImage(xx);

 }

【问题讨论】:

    标签: image-processing geometry grayscale edge-detection hough-transform


    【解决方案1】:

    也许这对你有用:(在 Mathematica 中)

    【讨论】:

    • 我可以通过 C# 使用 Mathematica 吗?我的意思是我可以像 aforge 一样使用 Mathematica api 吗?
    • @user 是的,你可以,但是 Mma 很贵。 OpenCV 中可以免费使用相同的功能。
    【解决方案2】:

    为此,您需要一个三维霍夫空间,由中心 x、中心 y 和圆半径参数化。然后,您最可能的位置和半径将作为 3D 霍夫空间中的最大值给出。恐怕这超出了 ImageJ 的能力范围,但手动编写代码应该很容易。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2023-02-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-10-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多