First time here? Check out the FAQ!
answered 2015-04-12 02:50:05 -0600
This assertion is rather self-explanatory: If you pass a mask, it has to be of type CV_8UC1 and has to have the same size as your input image.