hough ellipse fit inaccurate?

Kevin Keraudren kevin.keraudren at googlemail.com
Thu Mar 5 05:10:45 EST 2015


By the way, your ground truth is the values you used when drawing the
ellipse, not the values you detect with a different detection method.

On Thu, Mar 5, 2015 at 10:07 AM, Kevin Keraudren <
kevin.keraudren at googlemail.com> wrote:

> Hi Arno,
> In order to stay on the safe side, why don't you post your actual code,
> with a test case highlighting the error you measure between the true centre
> of the ellipse and the detected one?
> Kind regards,
> Kevin
>
> On Thu, Mar 5, 2015 at 9:53 AM, Arno Dietz <arnodietz86 at googlemail.com>
> wrote:
>
>> Thank you very much Kevin and Johannes.
>>
>> I see the rounding Problem, but it is just for the ellipse drawing. In my
>> actual code I just use the Ellipse center like best [1] and best[2] without
>> rounding. This still produces much more inaccurate ellipse center results
>> than other methods like center of mass for example, althoug
>> <http://www.dict.cc/englisch-deutsch/although.html>h I also use
>> the anti-aliased input image. So is there any possibility to get more
>> accurate results from the hough ellipse fit approach? If not, this is also
>> ok, I just want to be on the safe side that it's not my fault. In that
>> case I will have a look at the suggested approach from Johannes.
>>
>> Am Donnerstag, 5. März 2015 01:21:48 UTC+1 schrieb Kevin Keraudren:
>>>
>>> Hi Arno,
>>>
>>> The first source of inaccuracy comes from your code, you need to round
>>> the values instead of truncating them:
>>>
>>> #yc = int(best[1])
>>>
>>>
>>> #xc = int(best[2])
>>>
>>>
>>> #a = int(best[3])
>>>
>>>
>>> #b = int(best[4])
>>>
>>>
>>>
>>> yc = int(round(best[1]))
>>>
>>> xc = int(round(best[2]))
>>>
>>> a = int(round(best[3]))
>>>
>>> b = int(round(best[4]))
>>>
>>> See resulting image attached.
>>>
>>> Kind regards,
>>>
>>> Kevin
>>>
>>>
>>> A second source of inaccuracy comes from your input ellipse: it is not a
>>> perfect ellipse because you drew it using anti-aliasing.
>>
>>
>>
>> Third, you could fit an ellipse using RANSAC. How does this approach work
>>> for you: http://stackoverflow.com/questions/28281742/fitting-a-
>>> circle-to-a-binary-image/28289147#28289147
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "scikit-image" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to scikit-image+unsubscribe at googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scikit-image/attachments/20150305/26a74178/attachment.html>


More information about the scikit-image mailing list