handle empty cameraMatrix

pull/19559/head
APrigarina 4 years ago
parent eb90186614
commit 96570820ef
  1. 2
      samples/cpp/tutorial_code/calib3d/camera_calibration/camera_calibration.cpp

@ -417,7 +417,7 @@ int main(int argc, char* argv[])
// -----------------------Show the undistorted image for the image list ------------------------
//! [show_results]
if( s.inputType == Settings::IMAGE_LIST && s.showUndistorsed )
if( s.inputType == Settings::IMAGE_LIST && s.showUndistorsed && !cameraMatrix.empty())
{
Mat view, rview, map1, map2;

Loading…
Cancel
Save