jveitchmichaelis / rascal

RAnsac Assisted Spectral CALibration
BSD 3-Clause "New" or "Revised" License
12 stars 2 forks source link

Adjust ransac cost function to optimise for better solutions #54

Closed jveitchmichaelis closed 2 years ago

jveitchmichaelis commented 2 years ago

Currently the cost function can cause ransac to find a local minimum with a low number lines (but low fit error). We should perhaps change back to just using the number of lines matched and also look at adding a cost term to encourage the fit to be more linear (e.g. an L1 norm of the fit coefficients).

jveitchmichaelis commented 2 years ago

Added an option to fall back to number of matches, with rms error as tie breaker (bfad6aef3d8ba1350a1c7e1c3d02c8319c167654) - closing for now.