First time here? Check out the FAQ!
answered 2016-08-17 07:09:52 -0600
My magic crystal balls tells me that the type of your matrix is wrong. Do you pass an image with multiple channels (e.g. CV_8UC3). How do you create or load your image?