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

improve stability with numerically large coordinates #38

Open
axelpale opened this issue Oct 28, 2024 · 0 comments
Open

improve stability with numerically large coordinates #38

axelpale opened this issue Oct 28, 2024 · 0 comments

Comments

@axelpale
Copy link
Owner

Estimators with scaling and rotation involve squaring various sums of coordinates. If the coordinates are large numbers, then the limits of the double precision floating point numbers are quickly reached. Can we do better?

Scaling and rotation should be independent of the coordinate space origin. Therefore we should be able to offset the given coordinates close to the origin before estimation and then offset the result back to original coordinate space. This can make the estimation with large coordinates much more robust.

Note that the translation component of the resulting transformation is affected by both scaling and rotation. Therefore simple addition of negated offset is not enough. A proper mathematical treatment is necessary to solve this right. My hunch is that the offset needs to be scaled and offset with the estimated transformation before adding it back.

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