openCV updateMotionHistory
Hi,
I have got problem with updateMotionHistory function.
1 2 3 4 5 6 7 8 9 10 11 12 13
|
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?
Thanks in advance
Topic archived. No new replies allowed.