cvFitEllipse() function does not work

Bug #62284 reported by Mikael Olenfalk
6
Affects Status Importance Assigned to Milestone
opencv (Ubuntu)
Invalid
Low
Unassigned

Bug Description

the version of opencv in dapper seems to return faulty values when doing ellipse fitting; almost all valid input sequences of points return Inf and NaN for most (meaning no ellipse can be fitted onto the given sequence of points), running the same example with the same input data on a Windows machine (same opencv version) or on another version of opencv (tested with opencv 0.9.9 == 1.0rc1) yields correct values.

the opencv team reports that some versions should not be compiled with gcc 4.0 (please lookup: http://opencvlibrary.sourceforge.net); as gcc-4.0 is the default compiler for Ubuntu (I think) this can be one source of problem.

In order to test for this particular bug please run the example program fitellipse located at /samples/c/fitellipse in the source tarball; with the default threshold of 70 (as choosen at startup), the black round thing should be correctly fitted into an ellipse. this current version of opencv (0.9.6-4.1build1) does not correctly find this ellipse; however version 1.0rc1 does.

I am running this on a AMD64 machine with Ubuntu AMD64.

Revision history for this message
Daniel T Chen (crimsun) wrote :

Could you test Edgy's 0.9.7-3ubuntu1, please?

Changed in opencv:
importance: Untriaged → Low
status: Unconfirmed → Needs Info
Revision history for this message
Lionel Le Folgoc (mrpouit) wrote :

> this current version of opencv (0.9.6-4.1build1) does not correctly find this ellipse; however version 1.0rc1 does.

opencv 1.0.0-1ubuntu1 is in feisty, and should fix this issue.
Could someone confirm ?
Thanks.

Revision history for this message
Lionel Le Folgoc (mrpouit) wrote :

We are closing this bug report as it lacks the information, described in the previous comments, we need to investigate the problem further. However, please reopen it if you can give us the missing information and don't hesitate to submit bug reports in the future.

Changed in opencv:
status: Needs Info → Rejected
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.