Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect center detection. #3

Open
blackball opened this issue Jun 10, 2015 · 0 comments
Open

Incorrect center detection. #3

blackball opened this issue Jun 10, 2015 · 0 comments

Comments

@blackball
Copy link
Owner

In the first release of this pattern detector, I used the ellipse center as the circle center. In fact, under perspective projection, a circle will be a ellipse, and the center of the circle will not be the center of the ellipse. You could not estimate the the circle center by a single ellipse. Using all the ellipse we could get the circle centers using some optimization algorithm. Here is another simple way to do. Luckily, I have a black rectangle border outside the circles, and for every circle, I have a black background rectangle. I could first rectify the rectangle, and then detect the center of the circle, then project the points back using the homography matrix from the rectangle rectification.

I will improve the codes in near future. I believe this will bring a improvement. And I will add a benchmark framework for the pattern detection.

http://math.stackexchange.com/questions/214259/how-to-define-a-perspective-circle-in-xy

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

No branches or pull requests

1 participant