CameraStereo: fixed rectify=false ignored

This commit is contained in:
matlabbe
2016-06-15 11:36:37 -04:00
parent 7b733686cb
commit 95f9304f4f

View File

@@ -1256,7 +1256,7 @@ SensorData CameraStereoVideo::captureImage()
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);
rightImage = stereoModel_.right().rectifyImage(rightImage);