openCV updateMotionHistory

Ask questions on using Emgu CV with C++
Post Reply
dorota
Posts: 1
Joined: Thu Jan 14, 2010 2:53 am

openCV updateMotionHistory

Post by dorota » Thu Jan 14, 2010 3:41 am

Hi,
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;
}
This code gives bad type of mask argument() in function cvUpdateMHIByTime, cvmotempl.cpp (128).
Any ideas why?
Any help really appreciated.
Dorota

Post Reply