|
|
|
@ -376,12 +376,12 @@ void CProduct::CalAffinePars()
|
|
|
|
|
{
|
|
|
|
|
vector<Point2d> src(ThroryCoords, ThroryCoords + 2);
|
|
|
|
|
vector<Point2d> 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个变换参数
|
|
|
|
|