Hiya,
Your code looks great, compiling it fine (osx el capitan).
At run time I get:
OpenCV Error: Assertion failed (scn == 1 && (dcn == 3 || dcn == 4)) in cvtColor, file /tmp/opencv20160107-29960-t5glvv/opencv-2.4.12/modules/imgproc/src/color.cpp, line 3791
libc++abi.dylib: terminating with uncaught exception of type cv::Exception: /tmp/opencv20160107-29960-t5glvv/opencv-2.4.12/modules/imgproc/src/color.cpp:3791: error: (-215) scn == 1 && (dcn == 3 || dcn == 4) in function cvtColor
I've tried different with different transform values but to no avail.
Any small pointer in the right direction would be much appreciated!
Thanks
Hiya,
Your code looks great, compiling it fine (osx el capitan).
At run time I get:
OpenCV Error: Assertion failed (scn == 1 && (dcn == 3 || dcn == 4)) in cvtColor, file /tmp/opencv20160107-29960-t5glvv/opencv-2.4.12/modules/imgproc/src/color.cpp, line 3791
libc++abi.dylib: terminating with uncaught exception of type cv::Exception: /tmp/opencv20160107-29960-t5glvv/opencv-2.4.12/modules/imgproc/src/color.cpp:3791: error: (-215) scn == 1 && (dcn == 3 || dcn == 4) in function cvtColor
I've tried different with different transform values but to no avail.
Any small pointer in the right direction would be much appreciated!
Thanks