CameraStereo: fixed rectify=false ignored

This commit is contained in:
matlabbe
2016-06-15 11:36:37 -04:00
parent 7b733686cb
commit 95f9304f4f
+1 -1
View File
@@ -1256,7 +1256,7 @@ SensorData CameraStereoVideo::captureImage()
rightCvt = true; rightCvt = true;
} }
if((src_ != CameraVideo::kVideoFile || rectifyImages_) && stereoModel_.left().isValidForRectification() && stereoModel_.right().isValidForRectification()) if(rectifyImages_ && stereoModel_.left().isValidForRectification() && stereoModel_.right().isValidForRectification())
{ {
leftImage = stereoModel_.left().rectifyImage(leftImage); leftImage = stereoModel_.left().rectifyImage(leftImage);
rightImage = stereoModel_.right().rectifyImage(rightImage); rightImage = stereoModel_.right().rectifyImage(rightImage);