I have a problem with updateMotionHistory() function
Code: Select all
std::vector< const IplImage*>images;
IplImage*mhi;
int main()
{
double duration = 5.0;
images.push_back(cvLoadImage("r700.jpg"));
images.push_back(cvLoadImage("r705.jpg"));
mhi=cvCreateImage(cvSize(images[0]->width, images[0]->height),IPL_DEPTH_32F,0);
cvUpdateMotionHistory(images[1],mhi,10.0,duration);
cvShowImage("mhi",mhi);
system("pause");
return 0;
}
Any ideas why?
Any help really appreciated.
Dorota