Ask Your Question

Revision history [back]

Problem of using cvSVD

SXY = Y * K * X.t() * 1 / n;
cvSVD(&SXY, &D, &U, &V);
S = cv::Mat::eye(3, 3, CV_64F);

When I debug the code, the following err appeared:

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'

I already include the

#include <opencv2/core/core.hpp>
#include <opencv2/opencv.hpp>

How to solve it? Thank u.