Skip to content
This repository has been archived by the owner on Jul 19, 2020. It is now read-only.

Add a method to compute projection error to Bearing or CameraPoint #11

Open
vadixidav opened this issue Jun 28, 2020 · 0 comments
Open

Comments

@vadixidav
Copy link
Member

Justifications

Just earlier, I accidentally introduced a bug where I found the cosine distance of a bearing and a world point. Unfortunately, this was incorrect. I needed to transform the world point into the camera space first before computing the cosine distance for the purpose of filtering the point.

Also, a common thing to do is to compute this projection error as cosine distance via: 1.0 - bearing.dot(&view_point.bearing()).

Solution

We need to create a projection_error or similarly named method on the Bearing or CameraPoint. It can also be on both, so long as one simply calls the other.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant