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