From 13825dc8474715cd67b738f066d03fc339f4f6e9 Mon Sep 17 00:00:00 2001 From: bestlqiang Date: Thu, 2 Dec 2021 00:27:30 +0800 Subject: [PATCH] =?UTF-8?q?estimateAffinePartial2D:=E7=AC=AC3=E4=B8=AA?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E7=94=A8noArray?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LaiPuLaser/Product.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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个变换参数