some warnings and errors
This commit is contained in:
parent
187ab0ca61
commit
546f70a6f0
@ -34,7 +34,7 @@ static void help()
|
|||||||
cout << "\n This program demonstrates how to use MSER to detect extremal regions \n"
|
cout << "\n This program demonstrates how to use MSER to detect extremal regions \n"
|
||||||
"Usage: \n"
|
"Usage: \n"
|
||||||
" ./detect_mser <image1(without parameter a syntehtic image is used as default)>\n"
|
" ./detect_mser <image1(without parameter a syntehtic image is used as default)>\n"
|
||||||
"Press esc key when image window is active to change descriptor parameter\n";
|
"Press esc key when image window is active to change descriptor parameter\n"
|
||||||
"Press 2, 8, 4, 6, +,- or 5 keys in openGL windows to change view or use mouse\n";
|
"Press 2, 8, 4, 6, +,- or 5 keys in openGL windows to change view or use mouse\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -70,7 +70,7 @@ struct MSERParams
|
|||||||
int edgeBlurSize;
|
int edgeBlurSize;
|
||||||
};
|
};
|
||||||
|
|
||||||
String Legende(MSERParams &pAct)
|
static String Legende(MSERParams &pAct)
|
||||||
{
|
{
|
||||||
String s="";
|
String s="";
|
||||||
String inf = static_cast<ostringstream*>(&(ostringstream() << pAct.minArea))->str();
|
String inf = static_cast<ostringstream*>(&(ostringstream() << pAct.minArea))->str();
|
||||||
@ -118,9 +118,8 @@ struct DrawData
|
|||||||
ogl::Buffer indices;
|
ogl::Buffer indices;
|
||||||
};
|
};
|
||||||
|
|
||||||
void draw(void* userdata);
|
|
||||||
|
|
||||||
void draw(void* userdata)
|
static void draw(void* userdata)
|
||||||
{
|
{
|
||||||
DrawData* data = static_cast<DrawData*>(userdata);
|
DrawData* data = static_cast<DrawData*>(userdata);
|
||||||
glMatrixMode(GL_MODELVIEW);
|
glMatrixMode(GL_MODELVIEW);
|
||||||
@ -213,7 +212,7 @@ static void onMouse(int event, int x, int y, int flags, void*)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void DrawOpenGLMSER(Mat img, Mat result)
|
static void DrawOpenGLMSER(Mat img, Mat result)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_OPENGL
|
#ifdef HAVE_OPENGL
|
||||||
Mat imgGray;
|
Mat imgGray;
|
||||||
@ -331,7 +330,7 @@ void DrawOpenGLMSER(Mat img, Mat result)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
Mat MakeSyntheticImage()
|
static Mat MakeSyntheticImage()
|
||||||
{
|
{
|
||||||
Mat img(800, 800, CV_8UC1);
|
Mat img(800, 800, CV_8UC1);
|
||||||
map<int, char> val;
|
map<int, char> val;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user