我如何检索点的单应性计算findHomography和RANSAC
How can I retrieve the points of the homography computed findHomography and RANSAC?
我是OpenCV的新手。我注意到
这一行Mat H = findHomography( obj, scene, CV_RANSAC );
有助于在RANSAC中找到H
。
然而,我需要RANSAC之后"纯化"匹配点的位置,我根本找不到我可以使用的函数。我需要一个函数,使用RANSAC,并返回匹配点的位置后RANSAC。
findHomography可以选择性地提供inliers和outliers的掩码(inliers就是你所说的纯化的匹配)。
c++: Mat findHomography(InputArray srcPoints, InputArray dstPoints, int method=0, double ransacReprojThreshold=3, OutputArray mask=noArray())
Python: cv2。findHomography(srcPoints, dstPoints[, method[, ransacReprojThreshold[, mask]]])→检索,掩码
在进行匹配时,您只能使用内线(即相应mask
值等于1的点)
当你从finghomography得到真正的H33结果时,为什么不透视变换从蒙版到帧的匹配点,然后你得到许多"纯化"的匹配点
相关文章:
- 单击"推送"按钮应使用Qt C++在不同的窗口中显示绘图
- OpenCV CV 查找单应断言错误计数器 = > 4
- 阅读一个大文件来计算重复K次的单词数
- 从特征匹配/单应性中过滤掉误报 – OpenCV
- 应由于计算费用而避免对STD的多个调用::发现,否则这是可以接受的情况
- 我的逻辑有什么问题?尝试计算文件中包含特定字符的单词数
- 计算字符串中的单词数,C++
- 随机数生成器:是否应将其用作单例
- 静态多态性与boost变体单访问者与多访问者与动态多态性
- 使用单应性绕x/y轴旋转
- C++递减单字节(易失性)数组的元素不是原子!为什么?(还有:如何在Atmel AVR mcus/Arduino中强制原
- 从物体的不同角度寻找一个好的单应性
- OpenCV - 仅在绘制单应性时打印对象名称
- 单应性错误
- OpenCV RHO 单应性方法不适用于透视变换
- 如何使用opencv中的单应矩阵将一个点从一个图像重新投影到另一个图像
- 我如何检索点的单应性计算findHomography和RANSAC
- 如何在另一个函数中使用单应性的点/场景角作为ROI的输入
- 单应性矩阵和图像变换,关键点更少
- 在openCV单应矩阵中访问元素