First time here? Check out the FAQ!
answered 2013-09-13 11:26:35 -0600
You cannot convert an image inplace if the number of channels is different. You have to use another matrix for that.
cv::Mat gray; cv::cvtColor( frame, gray, CV_BGR2GRAY );