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

[jazzy] image_publisher: add field of view parameter (backport #985) #992

Merged
merged 1 commit into from
Jun 10, 2024

Conversation

mergify[bot]
Copy link

@mergify mergify bot commented May 28, 2024

Currently, the default value for focal length when no camera info is provided defaults to 1.0 rendering whole approximate intrinsics and projection matrices useless. Based on this article, I propose a better approximation of the focal length based on the field of view of the camera.

For most of the use cases, users will either know the field of view of the camera the used, or they already calibrated it ahead of time.

If there is some documentation to fill. please let me know.

This PR should be straightforward to port it to Humble, Iron and Jazzy.


This is an automatic backport of pull request #985 done by [Mergify](https://mergify.com).

Currently, the default value for focal length when no camera info is
provided defaults to `1.0` rendering whole approximate intrinsics and
projection matrices useless. Based on [this
article](https://learnopencv.com/approximate-focal-length-for-webcams-and-cell-phone-cameras/),
I propose a better approximation of the focal length based on the field
of view of the camera.

For most of the use cases, users will either know the field of view of
the camera the used, or they already calibrated it ahead of time.

If there is some documentation to fill. please let me know.

This PR should be straightforward to port it to `Humble`, `Iron` and
`Jazzy`.

---------

Co-authored-by: Alejandro Hernández Cordero <[email protected]>
(cherry picked from commit 78d80f7)
Copy link
Member

@mikeferguson mikeferguson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test failure is due to calibration python code changes - unrelated

@mikeferguson mikeferguson changed the title [rolling] image_publisher: add field of view parameter (backport #985) [jazzy] image_publisher: add field of view parameter (backport #985) Jun 10, 2024
@mikeferguson mikeferguson merged commit 5250a7d into jazzy Jun 10, 2024
1 of 3 checks passed
@mikeferguson mikeferguson deleted the mergify/bp/jazzy/pr-985 branch June 10, 2024 12:42
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

Successfully merging this pull request may close these issues.

2 participants