最近由于某些原因,需要重新回到OpenCV1.0时代。安装opencv.exe之后,在编译debug版本的时候,竟然出错了;以前也碰到过类似的问题,但忘记如何解决了;这次记录在这里,以备后需;
编译的时候,提示的错误:
rror C2039: 'foreground_regions' : is not a member of 'CvFGDStatModel'
error C2039: 'foreground_regions' : is not a member of 'CvFGDStatModel'
error C2039: 'foreground_regions' : is not a member of 'CvGaussBGModel'
解决办法:
在cvaux.h文件中,
1137行,原本为:
CvMemStorage* storage; /*storage for 揻oreground_regions?/ /
修改为:
CvMemStorage* storage; /*storage for 揻oreground_regions*/
完了!
推荐阅读:
Ubuntu 12.04 安装 OpenCV2.4.2
CentOS下OpenCV无法读取视频文件