小编Jac*_*ite的帖子

findHomography 在 OpenCV 3.0 中不起作用

我一直在使用 OpenCV 3.0 进行图像拼接项目。我像这样使用 findHomography 函数:

findHomography(imageOnePoints, imageTwoPoints, CV_RANSAC);
Run Code Online (Sandbox Code Playgroud)

但是当我尝试编译我的代码时,我返回以下错误消息:

stitch.cpp:111:75: error: ‘CV_RANSAC’ was not declared in this scope
 Mat homographyMatrix = findHomography(imageOnePoints, imageTwoPoints, CV_RANSAC);

stitch.cpp:111:84: error: ‘findHomography’ was not declared in this scope
 Mat homographyMatrix = findHomography(imageOnePoints, imageTwoPoints, CV_RANSAC);
Run Code Online (Sandbox Code Playgroud)

我已经声明我正在使用“命名空间 cv”,所以我不需要前面的“cv::”。我不确定问题是什么。对这些错误的任何建议将不胜感激。谢谢!

c++ opencv image-stitching

5
推荐指数
1
解决办法
5818
查看次数

标签 统计

c++ ×1

image-stitching ×1

opencv ×1