【问题标题】:How to convert Point2f[] to Point[] OpenCV [closed]如何将 Point2f[] 转换为 Point[] OpenCV [关闭]
【发布时间】:2021-03-26 19:31:51
【问题描述】:

除了创建一个一个一个放置元素的函数之外,有没有一种方法可以将 Point2f[] 转换为 Point[] 数据类型?

【问题讨论】:

标签: c# c++ opencv


【解决方案1】:

你可以使用Opencv的convertTo方法。

cv::Mat A = loadMat("mymat.xml"); // See function loadMat in the question!
A.convertTo(A, CV_64F);

选自here。选择合适的数据类型。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2020-07-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-12-20
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多