霍夫变换计算

问题描述 投票:0回答:1

通过线的正态方程进行变换。

为了计算r的值,同时对于不同的θ保持xy的值相同,使用以下公式。

r = sin(θ)y + cos(θ)x

但是结果与幻灯片中显示的结果不同。我想念什么吗?我是新手,请保持温柔。

enter image description herehough transformation

image-processing computer-vision hough-transform straight-line-detection
1个回答
0
投票

正如@Ash在上面的注释部分中解释的那样,角度应以弧度而非度表示。

所以r = sin(θ*pi/180)y + cos(θ*pi/180)x将给出正确的答案。

© www.soinside.com 2019 - 2024. All rights reserved.