New functions with QT GUI:
- fix c++ wrapper - fix compilation bugs
This commit is contained in:
parent
2f9aedfaab
commit
f2392f2e2f
@ -56,19 +56,19 @@ namespace cv
|
||||
|
||||
enum { WINDOW_AUTOSIZE=1 };
|
||||
|
||||
//YV
|
||||
//-----------New for QT
|
||||
//CV_EXPORTS void information(const string& name, const string& text, int delayms);
|
||||
//------------
|
||||
|
||||
|
||||
CV_EXPORTS void namedWindow( const string& winname, int flags CV_DEFAULT(WINDOW_AUTOSIZE) );
|
||||
CV_EXPORTS void destroyWindow( const string& winname );
|
||||
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
|
||||
|
||||
|
||||
//Only for QT
|
||||
CV_EXPORTS void displayOverlay(const string& winname, const string& text, int delayms);
|
||||
CV_EXPORTS int startLoop(int (*pt2Func)(int argc, char *argv[]), int argc, char* argv[]);
|
||||
CV_EXPORTS void stopLoop();
|
||||
|
||||
|
||||
CV_EXPORTS void imshow( const string& winname, const Mat& mat );
|
||||
|
||||
|
@ -208,9 +208,6 @@ CVAPI(void) cvConvertImage( const CvArr* src, CvArr* dst, int flags CV_DEFAULT(0
|
||||
/* wait for key event infinitely (delay<=0) or for "delay" milliseconds */
|
||||
CVAPI(int) cvWaitKey(int delay CV_DEFAULT(0));
|
||||
|
||||
void cvInformation(const char* name, const char* text, int delay);
|
||||
|
||||
|
||||
/****************************************************************************************\
|
||||
* Working with Video Files and Cameras *
|
||||
\****************************************************************************************/
|
||||
|
@ -135,11 +135,6 @@ double getWindowProperty(const string& winname, int prop_id)
|
||||
return cvGetWindowProperty(winname.c_str(),prop_id);
|
||||
}
|
||||
|
||||
void displayOverlay(const string& name, const string& text, int delayms)
|
||||
{
|
||||
cvDisplayOverlay(name.c_str(),text.c_str(), delayms);
|
||||
}
|
||||
|
||||
void imshow( const string& winname, const Mat& img )
|
||||
{
|
||||
CvMat _img = img;
|
||||
@ -179,6 +174,23 @@ int startWindowThread()
|
||||
return cvStartWindowThread();
|
||||
}
|
||||
|
||||
#if defined (HAVE_QT)
|
||||
void displayOverlay(const string& name, const string& text, int delayms)
|
||||
{
|
||||
cvDisplayOverlay(name.c_str(),text.c_str(), delayms);
|
||||
}
|
||||
|
||||
int startLoop(int (*pt2Func)(int argc, char *argv[]), int argc, char* argv[])
|
||||
{
|
||||
return cvStartLoop(pt2Func, argc, argv);
|
||||
}
|
||||
|
||||
void stopLoop()
|
||||
{
|
||||
cvStopLoop();
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
#if defined WIN32 || defined _WIN32 // see window_w32.cpp
|
||||
@ -211,6 +223,12 @@ CV_IMPL int cvNamedWindow( const char*, int )
|
||||
return -1;
|
||||
}
|
||||
|
||||
CV_IMPL int cvDisplayOverlay(const char* name, const char* text, int delayms)
|
||||
{
|
||||
CV_NO_GUI_ERROR("cvNamedWindow");
|
||||
return -1;
|
||||
}
|
||||
|
||||
CV_IMPL void cvDestroyWindow( const char* )
|
||||
{
|
||||
CV_NO_GUI_ERROR( "cvDestroyWindow" );
|
||||
|
Loading…
x
Reference in New Issue
Block a user