Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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.