1
3元素矢量構造器如何與OpenCV中的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
什麼'src'的定義是什麼? – 2013-03-23 13:36:17
cv :: Mat_>&src –
2013-03-23 14:24:11
你想要逐個通道的乘法?只用B * 2,G * 1,R * 1來縮放BGR? – 2013-03-23 15:15:45