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
23d211bf
Commit
23d211bf
authored
Jun 13, 2011
by
Vadim Pisarevsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
applied patches from #1005
parent
238b94cb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
window_QT.cpp
modules/highgui/src/window_QT.cpp
+9
-0
cv2.cpp
modules/python/src2/cv2.cpp
+2
-2
No files found.
modules/highgui/src/window_QT.cpp
View file @
23d211bf
...
...
@@ -42,6 +42,15 @@
#if defined(HAVE_QT)
#include <window_QT.h>
#include <math.h>
#ifdef _WIN32
#include <windows.h>
#define usleep Sleep
#endif
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif
//Static and global first
static
GuiReceiver
*
guiMainThread
=
NULL
;
...
...
modules/python/src2/cv2.cpp
View file @
23d211bf
...
...
@@ -525,10 +525,10 @@ template<typename _Tp> struct pyopencvVecConverter
}
if
(
channels
>
1
)
{
if
(
PyArray_Check
(
obj
))
if
(
PyArray_Check
(
item
))
{
Mat
src
;
pyopencv_to
(
obj
,
src
,
name
);
pyopencv_to
(
item
,
src
,
name
);
if
(
src
.
dims
!=
2
||
src
.
channels
()
!=
1
||
((
src
.
cols
!=
1
||
src
.
rows
!=
channels
)
&&
(
src
.
cols
!=
channels
||
src
.
rows
!=
1
)))
...
...
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