ORB_SLAM3
ORB_SLAM3 copied to clipboard
Jf99 fix camera2DistortionCoef()
camera2DistortionCoef() was referencing vPinHoleDistorsion1_.data() which can lead to out-of-bounds reading and incorrect image processing.
Now I also initialized the member variables of Settings. Not doing so made valgrind complain about decision making based on uninitialized data (e.g. if IMU config is missing in the calibration.yml).
I tried to choose reasonable default values, but I don't feel confident for all of them. However, any defined value is better than an undefined value.
Disclaimer: I don't intend to create spam. If the ORB_SLAM3 developers wish me to stop posting, I will cease immediately.
ORB_SLAM3 seems to be inactive, but there are a number of community patches, including yours, which provide important bugfixes or improvements. Therefore I have created a new project ORB_SLAM_COMMUNITY (https://github.com/jeremysalwen/ORB_SLAM_COMMUNITY) to gather together these improvements and continue active development. I have already merged this PR in the ORB_SLAM_COMMUNITY version. We would welcome any other contributions you might have.