在opencv,cvaux.h这个文件中.有一处代码注释错误.
#define CV_BG_STAT_MODEL_FIELDS() /
int type; /*type of BG model*/ /
CvReleaseBGStatModel release; /
CvUpdateBGStatModel update; /
IplImage* background; /*8UC3 reference background image*/ /
IplImage* foreground; /*8UC1 foreground image*/ /
IplImage** layers; /*8UC3 reference background image, can be null */ /
int layer_count; /* can be zero */ /
CvMemStorage* storage; /*storage for foreground_regions*/ /
CvSeq* foreground_regions /*foreground object contours*/
typedef struct CvBGStatModel
{
CV_BG_STAT_MODEL_FIELDS();
}
CvBGStatModel;
这是修改过后的代码.原来的代码
#define CV_BG_STAT_MODEL_FIELDS() /
int type; /*type of BG model*/ /
CvReleaseBGStatModel release; /
CvUpdateBGStatModel update; /
IplImage* background; /*8UC3 reference background image*/ /
IplImage* foreground; /*8UC1 foreground image*/ /
IplImage** layers; /*8UC3 reference background image, can be null */ /
int layer_count; /* can be zero */ /
CvMemStorage* storage; /*storage for 揻oreground_regions?/ /
CvSeq* foreground_regions /*foreground object contours*/
typedef struct CvBGStatModel
{
CV_BG_STAT_MODEL_FIELDS();
}
CvBGStatModel;
这些乱码导致编译工程的时候,cvaux.h文件中有些奇怪的错误.