add back in missing #ifdef

This commit is contained in:
Simon Hailes 2017-11-11 11:29:57 +00:00
parent 841fe088f6
commit cbb7f31b48

View File

@ -77,6 +77,7 @@ NAN_METHOD(BackgroundSubtractorWrap::New) {
}
// Create MOG by default
#if CV_MAJOR_VERSION >= 3
#ifdef HAVE_OPENCV_BGSEGM
cv::Ptr<cv::BackgroundSubtractor> bg = cv::bgsegm::createBackgroundSubtractorMOG();
if (NULL == bg){