Ask Your Question
-1

Problem of using cvSVD [closed]

asked 2017-05-27 03:21:23 -0600

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.

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by berak
close date 2017-05-28 01:42:04.533267

1 answer

Sort by » oldest newest most voted
0

answered 2017-05-28 01:40:59 -0600

berak gravatar image

opencv's c-api is deprecated, no more maintained, and you MUST NOT use it in 2017.

please use cv::SVD::compute(); instead.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2017-05-27 03:21:23 -0600

Seen: 380 times

Last updated: May 28 '17