私はビデオ安定化分野の初心者です。今、私はそれについて研究しています。小さなビデオ安定化デモをコーディングしています。しかし、私はいくつかの問題で立ち往生しています.OpenCVで関数「estimateGlobalMotionLeastSquares」を使用してグローバルモーションを推定しますが、機能しません
これが私のコードです:
CvPoint2D32f p0, p1;
vector<Point2f,allocator<Point2f>> ax, by;
ax.push_back(Point2f(2,2));
by.push_back(Point2f(3,2));
Mat t = estimateGlobalMotionLeastSquares(ax,by,AFFINE,0);
例: 2 つの変数 p0、p1 を関数 " evaluateGlobalMotionLeastSquares" のパラメーターとして作成し、グローバル モーション "t" を推定したいとします。しかし、私が準拠したとき、エラーは次のとおりです。
1>VS_OpenCVDlg.obj: エラー LNK2001: 未解決の外部シンボル "class cv::Mat __cdecl cv::videostab::estimateGlobalMotionLeastSquares(class std::vector,class std::allocator > > const &,class std::vector,class std::allocator > > const &,int,float *)" (?estimateGlobalMotionLeastSquares@videostab@cv@@YA?AVMat@2@ABV?$vector@V?$Point_@M@cv@@V?$allocator@ V?$Point_@M@cv@@@std@@@std@@0HPAM@Z) 1>F:\Research\Workspace\VS_OpenCV\Debug\VS_OpenCV.exe : 致命的なエラー LNK1120: 1 つの未解決の外部
これを修正するのを手伝ってください!!! その機能についての例をいくつか教えてください。