Skip to content

Commit 9657082

Browse files
committed
handle empty cameraMatrix
1 parent eb90186 commit 9657082

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

samples/cpp/tutorial_code/calib3d/camera_calibration/camera_calibration.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ int main(int argc, char* argv[])
417417

418418
// -----------------------Show the undistorted image for the image list ------------------------
419419
//! [show_results]
420-
if( s.inputType == Settings::IMAGE_LIST && s.showUndistorsed )
420+
if( s.inputType == Settings::IMAGE_LIST && s.showUndistorsed && !cameraMatrix.empty())
421421
{
422422
Mat view, rview, map1, map2;
423423

0 commit comments

Comments
 (0)