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

Custom cost function #5

Open
ShrutheeshIR opened this issue Feb 7, 2020 · 1 comment
Open

Custom cost function #5

ShrutheeshIR opened this issue Feb 7, 2020 · 1 comment

Comments

@ShrutheeshIR
Copy link

ShrutheeshIR commented Feb 7, 2020

How would I go about implementing a cost function that weights a few points more than the others. I am specifically asking for the 5 point Nister algorithm. Say, for every keypoint in the arguments, I have a weight associated with it, that indicates how good the correspondence of the point was, how would I include that in the calculations.
(Essentially I would like to fit a model that weights the input)
Which part of the code should I change?

@prclibo
Copy link
Owner

prclibo commented May 2, 2020

The code is based on RANSAC strategy which is not easy to integrate weights. Maybe you should use the RANSAC result as a initial value and write another optimizer weighting by your cost.

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

2 participants