Update solvepnp.cpp
authorPhilLab <PhilLab@users.noreply.github.com>
Mon, 5 May 2014 15:44:59 +0000 (17:44 +0200)
committerPhilLab <PhilLab@users.noreply.github.com>
Mon, 5 May 2014 15:44:59 +0000 (17:44 +0200)
Clarified assert message for allowed PnP flags

modules/calib3d/src/solvepnp.cpp

index 698302b..2b2d1bd 100644 (file)
@@ -94,7 +94,7 @@ bool cv::solvePnP( InputArray _opoints, InputArray _ipoints,
         return true;
     }
     else
-        CV_Error(CV_StsBadArg, "The flags argument must be one of CV_ITERATIVE or CV_EPNP");
+        CV_Error(CV_StsBadArg, "The flags argument must be one of CV_ITERATIVE, CV_P3P or CV_EPNP");
     return false;
 }