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
f2392f2e
Commit
f2392f2e
authored
Jun 20, 2010
by
Yannick Verdie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New functions with QT GUI:
- fix c++ wrapper - fix compilation bugs
parent
2f9aedfa
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
14 deletions
+29
-14
highgui.hpp
modules/highgui/include/opencv2/highgui/highgui.hpp
+6
-6
highgui_c.h
modules/highgui/include/opencv2/highgui/highgui_c.h
+0
-3
window.cpp
modules/highgui/src/window.cpp
+23
-5
No files found.
modules/highgui/include/opencv2/highgui/highgui.hpp
View file @
f2392f2e
...
...
@@ -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
);
...
...
modules/highgui/include/opencv2/highgui/highgui_c.h
View file @
f2392f2e
...
...
@@ -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 *
\****************************************************************************************/
...
...
modules/highgui/src/window.cpp
View file @
f2392f2e
...
...
@@ -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"
);
...
...
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