简体   繁体   English

计算边缘处圆心之间的距离

[英]Calculate distance between center of the circle at Edge

How can i Calculate Distance between center of the circle and extreme edges.我如何计算圆心和极端边缘之间的距离。

Below is the sample image and the green line is the Distance which i want to calculate.下面是示例图像,绿线是我要计算的距离。

在此处输入图像描述

How can do this using Open CV?如何使用 Open CV 做到这一点?

Hints:提示:

Not easy to make this reliably.可靠地做到这一点并不容易。 In the first place, make sure that you take the picture in front, to avoid parallax errors.首先,请确保您在前面拍摄照片,以避免视差错误。

Possibly find the central circle(s) by Hough.可能找到霍夫的中心圆圈。 This gives you the center.这给了你中心。

Now the hard par is to segment the blades.现在最难的是分割刀片。 Possibly by thresholding on a luminance image or anything close to that cream color.可能通过对亮度图像或任何接近奶油色的图像进行阈值处理。 Or using a general segmentation method.或者使用一般的分割方法。

Then figure out which blade is segmented most accurately, and find the longest distance from the center to any point of the blade (that gives you the tip).然后找出哪个刀片被最准确地分割,并找到从中心到刀片任意点的最长距离(这会给你尖端)。


If you don't care about accuracy, it is not impossible that Hough gives you the outer circle.如果你不关心准确性,Hough 给你外圈也不是不可能。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM