Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
187ab0ca
Commit
187ab0ca
authored
May 16, 2015
by
laurentBerger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include cvconfig.h to use constant HAVE_OPENGL
parent
7cf5de0e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
detect_mser.cpp
samples/cpp/detect_mser.cpp
+7
-1
No files found.
samples/cpp/detect_mser.cpp
View file @
187ab0ca
#include <opencv2/opencv.hpp>
#include "opencv2/core/opengl.hpp"
#include <cvconfig.h>
#include <vector>
#include <map>
#include <iostream>
#ifdef HAVE_OPENGL
#ifdef WIN32
#define WIN32_LEAN_AND_MEAN 1
#define NOMINMAX 1
...
...
@@ -20,7 +22,7 @@
#include <GL/gl.h>
#include <GL/glu.h>
#endif
#endif
using
namespace
std
;
...
...
@@ -107,6 +109,7 @@ float obsX = (float)0, obsY = (float)0, obsZ = (float)-10, tx = (float)0, ty = (
float
thetaObs
=
(
float
)
-
1.570
,
phiObs
=
(
float
)
1.570
,
rObs
=
(
float
)
10
;
int
prevX
=-
1
,
prevY
=-
1
,
prevTheta
=-
1000
,
prevPhi
=-
1000
;
#ifdef HAVE_OPENGL
struct
DrawData
{
...
...
@@ -208,9 +211,11 @@ static void onMouse(int event, int x, int y, int flags, void*)
}
}
#endif
void
DrawOpenGLMSER
(
Mat
img
,
Mat
result
)
{
#ifdef HAVE_OPENGL
Mat
imgGray
;
if
(
img
.
type
()
!=
CV_8UC1
)
cvtColor
(
img
,
imgGray
,
COLOR_BGR2GRAY
);
...
...
@@ -323,6 +328,7 @@ void DrawOpenGLMSER(Mat img, Mat result)
}
setOpenGlDrawCallback
(
"OpenGL"
,
0
,
0
);
destroyAllWindows
();
#endif
}
Mat
MakeSyntheticImage
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment