Simple OpenCV problem.
Posted
by iamcreasy
on Stack Overflow
See other posts from Stack Overflow
or by iamcreasy
Published on 2010-03-13T21:13:52Z
Indexed on
2010/03/13
21:15 UTC
Read the original article
Hit count: 534
Why I try to run the following OpenCV program, it shows the following error :
ERROR:
test_1.exe - Application Error
The application failed to initialize properly (0x80000003).
Click on OK to terminate the application.
CODE:
#include "cv.h"
#include "highgui.h"
int main()
{
IplImage *img = cvLoadImage("C:\\face.bmp");
cvSetImageROI(img, cvRect(100,100, 100, 100));
cvAddS(img, cvScalar(50), img);
cvResetImageROI(img);
cvShowImage("Test", img);
cvWaitKey(0);
return 0;
}
When i press F5(im using vs2008express), the program encounters a break point...i have attached a picture...dont know, whether, it will help or not.
It is not that, only this program is producing this error, but also any kind of image manipulation funciton containing (OpenCV)program is resulting in this sitution. Such as : cvSmooth
one last thing, it there any dedicated OpenCV forum or sth like that?
© Stack Overflow or respective owner