Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

you MUST check the result of EACH AND EVERY imread() call.

Mat currImage_= imread(filename);
if (currImage_.empty()) // ;(

you MUST check the result of EACH AND EVERY imread() call.

Mat currImage_= imread(filename);
if (currImage_.empty()) // ;(

(it obviously failed in your case, copyTo() dos not throw anything (baa!), and you end up with n exception in reshape(), a few lines down of the original problem.)

you MUST check the result of EACH AND EVERY imread() call.

Mat currImage_= imread(filename);
if (currImage_.empty()) // ;(

(it obviously failed in your case, copyTo() dos does not throw anything (baa!), and you end up with n an exception in reshape(), a few lines down of the original problem.)