here is the code ....plz help

IplImage *cur_frame = NULL;
	IplImage* background=NULL;
	cur_frame=cvLoadImage("C:\\Documents and Settings\\samia\\My Documents\\My Pictures\\frame.jpg",CV_LOAD_IMAGE_COLOR);
	background=cvLoadImage("C:\\Documents and Settings\\samia\\My Documents\\My Pictures\\background.jpg", CV_LOAD_IMAGE_COLOR);

Edited 5 Years Ago by ~s.o.s~: Added code tags, learn to use them.

error is

the application has requested the runtime to terminate it in unusual way.please contact application support team for more information.

the error is
application has terminated in an unusual application support team for more information.

Part of the problem may be the spaces in your filenames. I tried it with 2 files that had no spaces in the filenames, but got this error instead

OpenCV Error: Assertion failed (dst.size() == src.size() && dst.channels() == sr
c.channels()) in unknown function, file ..\..\..\..\..\..\..\..\OpenCV2.0\src\cv
\cvaccum.cpp, line 545

I think because my images weren't the same size.

I don't know what the problem is, but the OpenCV Yahoo group ( is probably with whom you should check.

This article has been dead for over six months. Start a new discussion instead.