mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-04 16:57:46 +08:00
Freenect2: Fixed initRectifyMap error with custom calibration
This commit is contained in:
@@ -1272,9 +1272,10 @@ bool CameraFreenect2::init(const std::string & calibrationFolder, const std::str
|
|||||||
const CameraModel & l = stereoModel_.left();
|
const CameraModel & l = stereoModel_.left();
|
||||||
const CameraModel & r = stereoModel_.right();
|
const CameraModel & r = stereoModel_.right();
|
||||||
stereoModel_ = StereoCameraModel(stereoModel_.name(),
|
stereoModel_ = StereoCameraModel(stereoModel_.name(),
|
||||||
depthSize, l.K(), l.D(), l.R(), depthP,
|
depthSize, l.K_raw(), l.D_raw(), l.R(), depthP,
|
||||||
colorSize, r.K(), r.D(), r.R(), colorP,
|
colorSize, r.K_raw(), r.D_raw(), r.R(), colorP,
|
||||||
stereoModel_.R(), stereoModel_.T(), stereoModel_.E(), stereoModel_.F());
|
stereoModel_.R(), stereoModel_.T(), stereoModel_.E(), stereoModel_.F());
|
||||||
|
stereoModel_.initRectificationMap();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user