Skip to content

Conversation

@oscarlorentzon
Copy link
Member

@oscarlorentzon oscarlorentzon commented Mar 9, 2021

Motivation

Ensure that the sfmToBearing calculations handles singularities and avoids outputting NaNs.

Contribution

Checks if the denominator is small and falls back to 1 if that is the case.

See OpenSfM camera functions for a reference.

Test Plan

yarn test
yarn start

@oscarlorentzon oscarlorentzon added this to the 4.0.0 milestone Mar 9, 2021
@oscarlorentzon oscarlorentzon merged commit b837b02 into main Mar 9, 2021
@oscarlorentzon oscarlorentzon deleted the feature-fisheye-singularity branch March 9, 2021 07:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants