2
我需要乘以矩陣及其轉置,但我得到了以下錯誤:opencv的矩陣乘法
「OpenCV的錯誤:斷言失敗(類型== B.type()& &(類型== CV_32FC1 || type == CV_64FC1 || type == CV_32FC2 || type == CV_64FC2))in unknown function,file .. .... \ src \ opencv \ modules \ core \ src \ matmul.cpp,line 711「
這裏是代碼:
int dA[] = {
1, 2, 3,
4, 5, 6,
6, 5, 4,
};
Mat A = Mat(3,3, CV_32S, dA);
Mat C = A.t()* A;