0
繼this example我試着用下面的值來初始化一個OpenCV的Mat
:初始化CV ::墊與數據不起作用
cv::Mat image = (cv::Mat_<int>(3,3) << 0, 255, 0, 0, 255, 0, 0, 255, 0);
然而,我的IDE與
Binary operator '<<' can't be applied to the expressions of type 'cv::Mat_<int>' and 'int'
和抱怨時編譯我得到
OpenCV Error: The function/feature is not implemented (Unsupported combination of source format (=4), and buffer format (=5)) in getLinearRowFilter, file /build/buildd/opencv-2.4.8+dfsg1/modules/imgproc/src/filter.cpp, line 2857
terminate called after throwing an instance of 'cv::Exception'
what(): /build/buildd/opencv-2.4.8+dfsg1/modules/imgproc/src/filter.cpp:2857: error: (-213) Unsupported combination of source format (=4), and buffer format (=5) in function getLinearRowFilter
我用Python的openCV相當雖然現在,但我完全失去了在C++中使用它。
錯誤與您發佈的代碼無關。請發佈相關代碼。 – Berriel