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

{Feature} C++ - Core - Calibration - unit test for cast in CameraProjection #180

Closed
wants to merge 3 commits into from

Conversation

YLouWashU
Copy link
Contributor

Summary: Unit test for cast function in CameraProjectionTemplated.

Reviewed By: YLouWashU

Differential Revision: D68177892

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D68177892

Summary:
Add template to `class CameraProjection` definition, to support both double and float. The motivation is to enable users to freely choose the underlying data type of the CameraProjection.

In order to avoid API change, I added `using CameraProjection = CameraProjectionTemplated<double>;`
ModelType and ProjectionVariant are taken from projectaria::tools::calibration::CameraProjection to projectaria::tools::calibration.

Reviewed By: YLouWashU, alexander-james-gamino

Differential Revision: D67540817
Summary:
Add a cast member function to `CameraProjection`:
```
template <typename OtherScalar>
CameraProjectionTemplated<OtherScalar> cast() const;
```

Reviewed By: YLouWashU

Differential Revision: D68133717
…ection (facebookresearch#180)

Summary:

Unit test for cast function in CameraProjectionTemplated.

Reviewed By: YLouWashU

Differential Revision: D68177892
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D68177892

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 8b84781.

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