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

Intrinsics and Extrinsics 'Impl' #134

Open
jangernert opened this issue May 22, 2018 · 3 comments
Open

Intrinsics and Extrinsics 'Impl' #134

jangernert opened this issue May 22, 2018 · 3 comments

Comments

@jangernert
Copy link
Collaborator

jangernert commented May 22, 2018

Instead of having a virtual implementation of GetIntrinsics and GetExtrinsics that by default try to load files from disc and can be overridden by the camera implementation, it would be nice to have a non-virtual method in the Camera class with a corresponding Impl method in the camera implementation. This way a cache could be implemented in the Camera class itself. Loading the intrinsics or extrinsics from file as a fallback would still be possible.

Trigger:
The Camera class already has an cache for ex/intrinsics. But the current implementation only works if the camera implementation doesn't override the methods of the Camera class. So the cache effectively only avoids having to load the files multiple times in fallback mode. The camera implementations don't profit from the cache at all.

@f00f
Copy link
Contributor

f00f commented Nov 2, 2018

This would help to globally fix #164.

@jangernert
Copy link
Collaborator Author

Simons idea:

  • public virtual GetFactoryIntrinsics is part of the public interface
  • GetIntrinsics tries to load intrinsics from file first, calls GetFactoryIntrinsics if no file is available

this way we could access factory calibration even if a pt file is present.

@f00f
Copy link
Contributor

f00f commented Jan 23, 2019

Simons idea:

  • public virtual GetFactoryIntrinsics is part of the public interface
  • GetIntrinsics tries to load intrinsics from file first, calls GetFactoryIntrinsics if no file is available

this way we could access factory calibration even if a pt file is present.

Isn't that a separate topic? This was about caching of transformations for all cameras. So I suggest opening an own issue for the new topic of accessing the factory transformations.

  • I like Simon's proposal
  • I would also implement it for extrinsics, if possible

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

No branches or pull requests

2 participants