mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-04 08:47:45 +08:00
Update CameraThread.cpp
When Mirroring option is checked, a depth calibration cannot be done because of the new mirrored CameraModel named tmpModel have its imageSize set to cv::Size(0, 0) so the method named isValidForReprojection() (which used in CalibrationDialog.cpp to check that the camera model is valid to do the calibration method) always returns false
This commit is contained in:
@@ -255,7 +255,9 @@ void CameraThread::postUpdate(SensorData * dataPtr, CameraInfo * info) const
|
|||||||
data.cameraModels()[0].fy(),
|
data.cameraModels()[0].fy(),
|
||||||
float(data.imageRaw().cols) - data.cameraModels()[0].cx(),
|
float(data.imageRaw().cols) - data.cameraModels()[0].cx(),
|
||||||
data.cameraModels()[0].cy(),
|
data.cameraModels()[0].cy(),
|
||||||
data.cameraModels()[0].localTransform());
|
data.cameraModels()[0].localTransform(),
|
||||||
|
data.cameraModels()[0].Tx(),
|
||||||
|
data.cameraModels()[0].imageSize());
|
||||||
data.setCameraModel(tmpModel);
|
data.setCameraModel(tmpModel);
|
||||||
}
|
}
|
||||||
if(!data.depthRaw().empty())
|
if(!data.depthRaw().empty())
|
||||||
|
|||||||
Reference in New Issue
Block a user