Open wuyuanmm opened 3 years ago
It would be great if you had the time to implement it. and I will try to implement it. Thanks for your reply!
On a related note, it it possible to get a generic implementation that would require the user to provide their own model with a suitable (weighted least squares) fitting function?
Robust line fitting is available: https://github.com/danini/magsac/blob/master/examples/example_line_fitting.ipynb I didn't yet to a very thorough testing, but it should work with no problem.
On a related note, it it possible to get a generic implementation that would require the user to provide their own model with a suitable (weighted least squares) fitting function?
Actually, adding new models is pretty easy. You simply have to add a new estimator into estimators.h (with LSQ and the residual function). If you want to have a Python binding for the new estimator as well, you simply have to add a new function in magsac_python.cpp and bindings.cpp. So adding new models is I would say pretty easy.
It does not have code for 2D line fitting but should be reasonably easy to implement if needed. Is it still relevant?