OpenCV Error: Assertion failed (scn == 3 || scn == 4) in cv::cvtColor, file ..\..\..\..\opencv\modules\imgproc\src\color.cpp, line 3648

asked 2014-03-20 14:43:20 -0600

maddy1445 gravatar image

Hi every one i am doing a small program using opencv in qt. when i use cvtColor for conversion of bgr to rbg(for qt) i am getting dis error

edit retag flag offensive close merge delete



This error usually happens when the image being acted upon by cv::cvtColor is a NULL image.Make sure that the image you are passing into it is not empty.

Abhishek Kumar Annamraju gravatar imageAbhishek Kumar Annamraju ( 2014-03-20 15:34:44 -0600 )edit