diff --git a/LaiPuLaser/Product.cpp b/LaiPuLaser/Product.cpp index ef96464..d5065ba 100644 --- a/LaiPuLaser/Product.cpp +++ b/LaiPuLaser/Product.cpp @@ -376,12 +376,12 @@ void CProduct::CalAffinePars() { vector src(ThroryCoords, ThroryCoords + 2); vector dest(RealCoords, RealCoords + 2); - auto tempMat = warp_mat; + int Method = abs(gCommonFlowMgr->m_EstimateAffinepar) % 3; Method = 4 * pow(2, Method); - warp_mat = estimateAffinePartial2D(src, dest, tempMat, Method/*LMEDS*/); + warp_mat = estimateAffinePartial2D(src, dest, noArray(), Method/*LMEDS*/); warp_mat.convertTo(warp_mat, CV_32FC1);//不转化时,默认CV_64FC1 后续计算会错误 //取出6个变换参数