handle empty cameraMatrix

This commit is contained in:
APrigarina 2021-02-18 16:18:19 +03:00
parent eb90186614
commit 96570820ef

View File

@ -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;