From c67b0c87226395bf81d94dd72a4a138ff1865a1d Mon Sep 17 00:00:00 2001 From: berak Date: Sun, 2 Dec 2018 03:20:50 +0100 Subject: [PATCH] Update OKCV.cpp CV_ constants are no more available in current opencv4 (and it was changed in opencv3 already) --- OKCV.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OKCV.cpp b/OKCV.cpp index f55876c..f2b8efc 100644 --- a/OKCV.cpp +++ b/OKCV.cpp @@ -190,7 +190,7 @@ static double computeReprojectionErrors( { projectPoints(Mat(objectPoints[i]), rvecs[i], tvecs[i], cameraMatrix, distCoeffs, imagePoints2); - err = norm(Mat(imagePoints[i]), Mat(imagePoints2), CV_L2); + err = norm(Mat(imagePoints[i]), Mat(imagePoints2), NORM_L2); int n = (int)objectPoints[i].size(); perViewErrors[i] = (float)std::sqrt(err*err/n); totalErr += err*err;