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.
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.