I am new to opencv.. I have this simple code:
//Header files using namespace std; using namespace cv;
int main() {
Mat image; Mat templ;
Mat result;
int method = CV_TM_SQDIFF;
namedWindow( "result_window", CV_WINDOW_AUTOSIZE );
image = imread ("Image.png", 1 );
templ = imread ("template_m.png",1 ) ;
void matchTemplate (Mat image, Mat templ, Mat result, int method);
imshow ( "result_window", result ); return 0; }
But when i compile it it says abort() is called. Can anyone tell me what is the reason ??