Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

you always should check resources:

Mat img; imread("im1.jpg",1);
if ( img.empty() )
{
     cerr << "whaa!" << endl;
     return 0;
}

same for the templ image