mirror of
https://github.com/opencv/opencv.git
synced 2025-06-08 01:53:19 +08:00
Merge pull request #15451 from mattmyne:calibratecameraRO_fix_emptyJo
This commit is contained in:
commit
00f36a261b
@ -1588,7 +1588,7 @@ static double cvCalibrateCamera2Internal( const CvMat* objectPoints,
|
|||||||
Mat _Je( maxPoints*2, 6, CV_64FC1 );
|
Mat _Je( maxPoints*2, 6, CV_64FC1 );
|
||||||
Mat _err( maxPoints*2, 1, 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();
|
Mat _Jo = allocJo ? Mat( maxPoints*2, maxPoints*3, CV_64FC1, Scalar(0) ) : Mat();
|
||||||
|
|
||||||
if(flags & CALIB_USE_LU) {
|
if(flags & CALIB_USE_LU) {
|
||||||
|
Loading…
Reference in New Issue
Block a user