1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 07:43:03 +04:00

Prevent empty _Jo matrix multiplication when using calibrateCameraRO with iFixedPoint > 0

This commit is contained in:
Matt Bennett
2019-09-04 15:33:03 +01:00
parent 61cc855564
commit b17d16623a
+1 -1
View File
@@ -1588,7 +1588,7 @@ static double cvCalibrateCamera2Internal( const CvMat* objectPoints,
Mat _Je( maxPoints*2, 6, CV_64FC1 );
Mat _err( maxPoints*2, 1, CV_64FC1 );
const bool allocJo = (solver.state == CvLevMarq::CALC_J) || stdDevs;
const bool allocJo = (solver.state == CvLevMarq::CALC_J) || stdDevs || releaseObject;
Mat _Jo = allocJo ? Mat( maxPoints*2, maxPoints*3, CV_64FC1, Scalar(0) ) : Mat();
if(flags & CALIB_USE_LU) {