【发布时间】:2019-05-23 15:05:06
【问题描述】:
我正在尝试使用Cv2.FindHomography 方法查找两个源的单应矩阵。到目前为止一切正常。问题是我无法获取/打印矩阵值。我真的是 C# 的初学者。我发现了一种属于它的documentation。但是,我不明白如何迭代这些值。
this[int startCol, int endCol]
override MatExpr OpenCvSharp.Mat.ColExprIndexer.this[int startCol, int endCol]
getset
Creates a matrix header for the specified column span.
Parameters
startCol An inclusive 0-based start index of the column span.
endCol An exclusive 0-based ending index of the column span.
Returns
我的代码,
Point2d[] points1 = new Point2d[]
{
new Point2d(141, 131), new Point2d(480, 159)
};
Point2d[] points2 = new Point2d[]
{
new Point2d(318, 256),
new Point2d(5, 1)
};
Mat hCv = Cv2.FindHomography(points1, points2);
// I want to print the the resultant matrix
【问题讨论】:
标签: c# opencv matrix iterator opencvsharp