我需要将矩阵及其转置相乘,但出现以下错误:
“OpenCV 错误:断言失败 (type == B.type() && (type == CV_32FC1 || type == CV_64FC1 || type == CV_32FC2 || type == CV_64FC2)) 在未知函数中,文件.. .. ..\src\opencv\modules\core\src\matmul.cpp,第 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;