relative-pose-estimation icon indicating copy to clipboard operation
relative-pose-estimation copied to clipboard

Custom cost function

Open ShrutheeshIR opened this issue 5 years ago • 1 comments

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?

ShrutheeshIR avatar Feb 07 '20 11:02 ShrutheeshIR

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.

prclibo avatar May 02 '20 11:05 prclibo