fixed fatal error (fx not defined) on stereo camera calibration

This commit is contained in:
matlabbe
2015-07-08 15:44:49 -04:00
parent 28c9ada06e
commit bf4715b73c

View File

@@ -424,13 +424,17 @@ SensorData CameraStereoDC1394::captureImage()
// Rectification // Rectification
left = stereoModel_.left().rectifyImage(left); left = stereoModel_.left().rectifyImage(left);
right = stereoModel_.right().rectifyImage(right); right = stereoModel_.right().rectifyImage(right);
StereoCameraModel model( StereoCameraModel model;
stereoModel_.left().fx(), //fx if(stereoModel_.isValid())
stereoModel_.left().fy(), //fy {
stereoModel_.left().cx(), //cx model = StereoCameraModel(
stereoModel_.left().cy(), //cy stereoModel_.left().fx(), //fx
stereoModel_.baseline(), stereoModel_.left().fy(), //fy
this->getLocalTransform()); stereoModel_.left().cx(), //cx
stereoModel_.left().cy(), //cy
stereoModel_.baseline(),
this->getLocalTransform());
}
data = SensorData(left, right, model, this->getNextSeqID(), UTimer::now()); data = SensorData(left, right, model, this->getNextSeqID(), UTimer::now());
} }
} }