OpenCV Error: Assertion failed (scn == 3 || scn == 4) in cv::cvtColor, file ..\..\..\..\opencv\modules\imgproc\src\color.cpp, line 3648
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
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.