Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Run time error: R6010 abort () called:

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 ??

click to hide/show revision 2
No.2 Revision

updated 2013-05-02 13:15:17 -0600

berak gravatar image

Run time error: R6010 abort () called:

I am new to opencv.. I have this simple code:

//Header files
using namespace std;
using namespace cv;

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);

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 ??