New functions with QT GUI:
- fix c++ wrapper - rename cvInformation in cvDisplayOverlay
This commit is contained in:
parent
bd643ad550
commit
2f9aedfaab
@ -68,6 +68,7 @@ CV_EXPORTS int startWindowThread();
|
||||
|
||||
CV_EXPORTS void setWindowProperty(const string& winname, int prop_id, double prop_value);//YV
|
||||
CV_EXPORTS double getWindowProperty(const string& winname, int prop_id);//YV
|
||||
CV_EXPORTS void displayOverlay(const string& winname, const string& text, int delayms);
|
||||
|
||||
CV_EXPORTS void imshow( const string& winname, const Mat& mat );
|
||||
|
||||
|
@ -58,7 +58,7 @@ extern "C" {
|
||||
\****************************************************************************************/
|
||||
//YV
|
||||
//-----------New for QT
|
||||
CVAPI(void) cvInformation(const char* name, const char* text, int delayms);
|
||||
CVAPI(void) cvDisplayOverlay(const char* name, const char* text, int delayms);
|
||||
CVAPI(int) cvStartLoop(int (*pt2Func)(int argc, char *argv[]), int argc, char* argv[]);
|
||||
CVAPI(void) cvStopLoop();
|
||||
//----------------------
|
||||
|
@ -125,24 +125,20 @@ void destroyWindow( const string& winname )
|
||||
cvDestroyWindow( winname.c_str() );
|
||||
}
|
||||
|
||||
//YV
|
||||
void setWindowProperty(const string& winname, int prop_id, double prop_value)
|
||||
{
|
||||
cvSetWindowProperty( winname.c_str(),prop_id,prop_value);
|
||||
}
|
||||
|
||||
//YV
|
||||
double getWindowProperty(const string& winname, int prop_id)
|
||||
{
|
||||
return cvGetWindowProperty(winname.c_str(),prop_id);
|
||||
}
|
||||
|
||||
/*
|
||||
void information(const string& name, const string& text, int delayms)
|
||||
void displayOverlay(const string& name, const string& text, int delayms)
|
||||
{
|
||||
cvInformation(name.c_str(),text.c_str(), delayms);
|
||||
cvDisplayOverlay(name.c_str(),text.c_str(), delayms);
|
||||
}
|
||||
* */
|
||||
|
||||
void imshow( const string& winname, const Mat& img )
|
||||
{
|
||||
|
@ -96,7 +96,7 @@ double cvGetModeWindow_QT(const char* name)
|
||||
return result;
|
||||
}
|
||||
|
||||
CV_IMPL void cvInformation(const char* name, const char* text, int delayms)
|
||||
CV_IMPL void cvDisplayOverlay(const char* name, const char* text, int delayms)
|
||||
{
|
||||
|
||||
QMetaObject::invokeMethod(&guiMainThread,
|
||||
|
Loading…
x
Reference in New Issue
Block a user