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

Fix out of bounds indexes when retrieving camera matrix for rectified images (backport #47) #49

Merged
merged 1 commit into from
Jun 4, 2024

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Jun 4, 2024

After merging #46 I noticed that the ROS2 port tries to fit 3x4 Projection matrix into 3x3 cv::Mat which results in out of bounds indexes. This did not raise an exception as OpenCv does array range checking only in Debug mode.

This PR makes the camera matrix retrieval for rectified images work the same as in ROS1 version after applying fix from @real-Sandip-Das

I also added image_is_rectified parameter, which was missing for a long time, to the example yaml file.


This is an automatic backport of pull request #47 done by Mergify.

… images (#47)

* Fix out of bounds indexes when retrieving camera matrix for rectified images

Co-authored-by: Sandip Das <[email protected]>

* Add image_is_rectified parameter to example yaml config

---------

Co-authored-by: Sandip Das <[email protected]>
(cherry picked from commit 988501b)
@bjsowa bjsowa merged commit b3f2257 into humble Jun 4, 2024
3 checks passed
@bjsowa bjsowa deleted the mergify/bp/humble/pr-47 branch June 4, 2024 16:41
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.

1 participant