weixin_44793918
2022-03-01 00:46
采纳率: 100%
浏览 85

opencvsharp findhomography怎么使用

            var imagePoint1 = new List<Point2f>();
            var imagePoint2 = new List<Point2f>();
            for (int i = 0; i < matchePoints.Length; i++)
            {
                imagePoint1.Add(keyPoints1[matchePoints[i].QueryIdx].Pt.ToPoint());
                imagePoint2.Add(keyPoints2[matchePoints[i].TrainIdx].Pt.ToPoint()); 
                
            }

            Mat homo = Cv2.FindHomography(imagePoint2, imagePoint1, HomographyMethods.Ransac);

参考的是这篇文章:https://www.jb51.net/article/169211.htm

img

  • 写回答
  • 好问题 提建议
  • 追加酬金
  • 关注问题
  • 邀请回答

2条回答 默认 最新

相关推荐 更多相似问题