Skip to content

Commit 50a1a33

Browse files
committed
Merge pull request opencv#19559 from APrigarina:calib3d_fix
2 parents eb90186 + 9657082 commit 50a1a33

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)