错误:' cvSVD'不是' cv'的成员

时间:2017-05-27 04:15:43

标签: c++ opencv

    cv::reduce(X, ux, 1, CV_REDUCE_AVG);
    cv::reduce(Y, uy, 1, CV_REDUCE_AVG);
    sigmx2 = normv(X * K) * 1 / n;
    SXY = Y * K * X.t() * 1 / n;
//    cv::SVD::compute(SXY, D, U, V);
    cv::cvSVD(&SXY, &D, &U, &V);
//    cv::SVD::compute(SXY, U, D, V);

当我调试时,出现以下错误:

/home/allanna/Code/test_rpnp/rpnp.cpp:397:5: error: 'cvSVD' is not a member of 'cv'
     cv::cvSVD(&SXY, &D, &U, &V);

我已经包含了

#include <opencv2/core/core_c.h>

#include <opencv2/core/core.hpp>

在cvSVD之前取出cv ::之后,出现以下代码:

OpenCV Error: Bad argument (Unknown array type) in cvarrToMat, file /home/allanna/Library/opencv-3.0.0/modules/core/src/matrix.c‌​pp, line 880 terminate called after throwing an instance of 'cv::Exception'

如何解决?谢谢你。

0 个答案:

没有答案