Skip to content

Add ability to estimate intrinsics from frame - #154

Open
torbsorb wants to merge 1 commit into
ros1-sdk-2.15.0from
MISC-2025-08-27-backport-estimated-intrinsics-to-ros1-sdk-2.15.0
Open

Add ability to estimate intrinsics from frame#154
torbsorb wants to merge 1 commit into
ros1-sdk-2.15.0from
MISC-2025-08-27-backport-estimated-intrinsics-to-ros1-sdk-2.15.0

Conversation

@torbsorb

Copy link
Copy Markdown
Contributor

Add the parameter intrinsics_source to control how the intrinsics are determined.

Add a new sample to demonstrate intrinsics and the new parameter.

See README.md and
Camera Intrinsics for more information.

Add the parameter `intrinsics_source` to control how the intrinsics are
determined.

Add a new sample to demonstrate intrinsics and the new parameter.

See README.md and
[Camera Intrinsics](https://support.zivid.com/en/latest/reference-articles/camera-intrinsics.html#which-camera-intrinsics-should-i-use)
for more information.
{
case IntrinsicsSource::Camera:
ROS_INFO("Using camera intrinsics for publishing images");
return Zivid::Experimental::Calibration::intrinsics(camera_, frame.settings());

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This code doesn't take into account that the settings could have a different 2D vs 3D resolution. On the ROS2 branch, I made a function to check first if 2D settings are defined, and if so uses that instead of the 3D settings: https://github.com/zivid/zivid-ros/pull/153/files

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants