更新rgbd模式下畸变不生效bug

master
lyc 2022-09-15 20:17:45 +08:00
parent 29f9639cce
commit a11ca1ed8e
1 changed files with 6 additions and 1 deletions

View File

@ -255,7 +255,12 @@ void Settings::readCamera1(cv::FileStorage &fSettings)
} }
// Check if we need to correct distortion from the images // Check if we need to correct distortion from the images
if ((sensor_ == System::MONOCULAR || sensor_ == System::IMU_MONOCULAR) && vPinHoleDistorsion1_.size() != 0) if (
(sensor_ == System::MONOCULAR ||
sensor_ == System::IMU_MONOCULAR ||
sensor_ == System::RGBD ||
sensor_ == System::IMU_RGBD) &&
vPinHoleDistorsion1_.size() != 0)
{ {
bNeedToUndistort_ = true; bNeedToUndistort_ = true;
} }