Skip to content

Fixed bug #3101, problem on ellipse2poly function#1139

Merged
opencv-pushbot merged 2 commits intoopencv:2.4from
StevenPuttemans:bugfix_3101
Jul 31, 2013
Merged

Fixed bug #3101, problem on ellipse2poly function#1139
opencv-pushbot merged 2 commits intoopencv:2.4from
StevenPuttemans:bugfix_3101

Conversation

@StevenPuttemans
Copy link
Copy Markdown

Added the fix of Guanta solving the following segmentation fault:

Before adding the points to draw to the output pts-vector it is resized to 0 (drawing.cpp, line 873). If now the ellipse to draw isn't valid, e.g. starting angle or ending angle are equal, then the loop won't be executed, no point will be added to the pts-vector and the line 894: pts.push_back(pts[0]); will result in a segfault.

@StevenPuttemans
Copy link
Copy Markdown
Author

Looking at bugfix 3101 (http://code.opencv.org/issues/3101), Guanta also mentions changing the delta to float. Since noone explicitly confirmed this is correct, I did not yet applied the change.

@ghost ghost assigned vpisarev Jul 17, 2013
@SeninAndrew
Copy link
Copy Markdown
Contributor

@vpisarev Vadim, could you please review this fix? Also, what do you think regarding changing delta to float?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Either missing braces or incorrect formatting here (this line shall be moved to the left)

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, let me check Guanta's entrence in the bugfix

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing brackets it is 👍 will adapt!

@StevenPuttemans
Copy link
Copy Markdown
Author

Any news on changing the delta value or not?

@StevenPuttemans
Copy link
Copy Markdown
Author

@vpisarev , I do got your email notice but it doesnt show on github. Does your ok means that we could change the parameter to float?

@StevenPuttemans
Copy link
Copy Markdown
Author

I saw today that a warning appeared:

List failed tests:

Video_OpticalFlowSimpleFlow.accuracy (12258 ms) : Optical flow estimation RMSE for SimpleFlow algorithm : 0.853567
Too big rmse error : 0.853567 ( >= 0.600000 )

Anyone has a clue why this happens all of a sudden? Before the warning wasn't there.

@ghost ghost assigned apavlenko Jul 31, 2013
@apavlenko
Copy link
Copy Markdown
Contributor

👍

@StevenPuttemans
Copy link
Copy Markdown
Author

And the error is gone again :) No idea why this happened :) Weird stuff going on on pullrequest website sometimes...

@opencv-pushbot opencv-pushbot merged commit dd0481e into opencv:2.4 Jul 31, 2013
@StevenPuttemans
Copy link
Copy Markdown
Author

👍

@StevenPuttemans StevenPuttemans deleted the bugfix_3101 branch July 31, 2013 11:18
@SpecLad SpecLad mentioned this pull request Aug 6, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants