Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

AutoBuffer Error - Compiling OpenCV 3.4.2

Does anyone know why I get the below errors when compiling opencv with the contrib modules? I have the cmake flag OPENCV_ENABLE_NONFREE set. Using VS2015, CMake 3.12

opencv_3.4.2\sources\opencv_contrib-master\modules\xfeatures2d\src\sift.cpp(346): error C2039: 'data': is not a member of 'cv::AutoBuffer<float,264>'

\opencv_3.4.2\sources\opencv_contrib-master\modules\xfeatures2d\src\sift.cpp(345): note: see declaration of 'cv::AutoBuffer<float,264>'

\opencv_3.4.2\sources\opencv_contrib-master\modules\xfeatures2d\src\sift.cpp(759): error C2039: 'data': is not a member of 'cv::AutoBuffer<float,264>'

\opencv_3.4.2\sources\opencv_contrib-master\modules\xfeatures2d\src\sift.cpp(345): note: see declaration of 'cv::AutoBuffer<float,264>'

\opencv_3.4.2\sources\opencv_contrib-master\modules\xfeatures2d\src\surf.cpp(681): error C2039: 'data': is not a member of 'cv::AutoBuffer<uchar,1032>'

\opencv_3.4.2\sources\opencv_contrib-master\modules\xfeatures2d\src\surf.cpp(593): note: see declaration of 'cv::AutoBuffer<uchar,1032>'

Thanks