OpenCV compile bug

c:\Program Files\OpenCV\cvaux\src\cvbgfg_gaussmix.cpp(343): error C2039: 'foreground_regions' : is not a member of 'CvGaussBGModel'

c:\Program Files\OpenCV\cvaux\src\cvbgfg_acmmm2003.cpp(411): error C2039: 'foreground_regions' : is not a member of 'CvFGDStatModel'

cvaux.h 파일을 살펴보면,

#define CV_BG_STAT_MODEL_FIELDS()   
......
        CvMemStorage*   storage;                   /*storage for 밼oreground_regions?/              
        CvSeq*                 foreground_regions /*foreground object contours*/

이렇게 되어 있으므로,

        CvMemStorage*   storage;                  /*storage for foreground_regions*/       
        CvSeq*                foreground_regions /*foreground object contours*/

이렇게 주석을 바로 잡아 줘야 제대로 컴파일 됨.


댓글

Designed by JB FACTORY