First time here? Check out the FAQ!
answered 2013-04-26 22:26:11 -0600
HI, I think you should check the source Mat is empty or not. for example:
Mat a=imread(image_path) // if image is loades, the a is not empty
of course , if you use
Mat m = new Mat() // where m is empty.