#include <opencv2/opencv.hpp>
#include "opencv2/core/opengl.hpp"
-#include <cvconfig.h>
+#include "cvconfig.h"
#include <vector>
#include <map>
}
#endif
+#ifdef HAVE_OPENGL
static void DrawOpenGLMSER(Mat img, Mat result)
{
-#ifdef HAVE_OPENGL
Mat imgGray;
if (img.type() != CV_8UC1)
cvtColor(img, imgGray, COLOR_BGR2GRAY);
}
setOpenGlDrawCallback("OpenGL", 0, 0);
destroyAllWindows();
-#endif
}
+#endif
static Mat MakeSyntheticImage()
{
cout << "Feature : " << *itDesc << "\n";
cout << e.msg << endl;
}
- DrawOpenGLMSER(img,result);
+#ifdef HAVE_OPENGL
+ DrawOpenGLMSER(img, result);
+#endif
waitKey();
}
return 0;