我必须使用参数跟踪矩阵: -
cv::Mat fFuncv--> size of fFunc [924440 x 10] and depth 5
cv::Mat Ones -->size of Ones [924440 x 1] and depth 5
cv::Mat cFuncv-->size of cFunc [1 x 10] and depth 5
当我这样做时: -
d = fFunc - Ones * cFunc;
我收到以下错误消息
OpenCV错误:
断言失败(a_size.width == len)在gemm中,文件D:\ opencv \ sources \ modules \ core \ src \ matmul.cpp,第1537行 在抛出' cv :: Exception'的实例后终止调用 what():D:\ opencv \ sources \ modules \ core \ src \ matmul.cpp:1537:错误:(-215)a_size.width == len in function gemm
如果我执行另一个减法方法,例如
CV ::减法(fFunc,问鼎* cFunc,d);
OpenCV错误:
断言失败(type2 == CV_64F&&(sz2.height == 1 || sz2.height == 4))在arithm_op中,文件D:\ opencv \ sources \ modules \ core \ src \ arithm。 cpp,661行 在抛出' cv :: Exception'的实例后终止调用 what():D:\ opencv \ sources \ modules \ core \ src \ arithm.cpp:661:错误:(-215)type2 == CV_64F&& (sz2.height == 1 || sz2.height == 4)函数arithm_op
你能帮我解答一下错误信息是什么意思吗?我错了什么?
答案 0 :(得分:1)
我认为尺寸为[Width,Height]
,即[num_cols,num_rows]
,因此您无法乘以。Ones * cFunc
cFunc * Ones
,而是$(document).on('click', '.ajax-loaded-element' function(){});
。