如何在 OpenCV 中将 3 元素向量构造函数与 Mat 相乘?我尝试了以下但它抛出了一个错误:
cv::multiply(src, cv::Vec<_Tp, 3>(2.0, 1.0, 1.0), src);
它给出了以下错误:
OpenCV Error: Assertion failed (src2.type() == CV_64F && (src2.rows == 4 || src2.rows == 1)) in arithm_op, file /Users/abhishek/Documents/OpenCV-2.4.3/modules/core/src/arithm.cpp, line 1275
libc++abi.dylib: terminate called throwing an exception