OpenCV1.0编译错误解决办法

   最近由于某些原因,需要重新回到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*/ 

完了!

你可能感兴趣的:(OpenCV1.0编译错误解决办法)