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
2756ae20
Commit
2756ae20
authored
Apr 29, 2014
by
Alexander Mordvintsev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
exposed OpenCL-control functions to python
parent
cafcfc4d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
7 deletions
+10
-7
ocl.hpp
modules/core/include/opencv2/core/ocl.hpp
+6
-6
CMakeLists.txt
modules/python/CMakeLists.txt
+1
-0
gen2.py
modules/python/src2/gen2.py
+2
-1
hdr_parser.py
modules/python/src2/hdr_parser.py
+1
-0
No files found.
modules/core/include/opencv2/core/ocl.hpp
View file @
2756ae20
...
...
@@ -46,12 +46,12 @@
namespace
cv
{
namespace
ocl
{
CV_EXPORTS
bool
haveOpenCL
();
CV_EXPORTS
bool
useOpenCL
();
CV_EXPORTS
bool
haveAmdBlas
();
CV_EXPORTS
bool
haveAmdFft
();
CV_EXPORTS
void
setUseOpenCL
(
bool
flag
);
CV_EXPORTS
void
finish
();
CV_EXPORTS
_W
bool
haveOpenCL
();
CV_EXPORTS
_W
bool
useOpenCL
();
CV_EXPORTS
_W
bool
haveAmdBlas
();
CV_EXPORTS
_W
bool
haveAmdFft
();
CV_EXPORTS
_W
void
setUseOpenCL
(
bool
flag
);
CV_EXPORTS
_W
void
finish
();
class
CV_EXPORTS
Context
;
class
CV_EXPORTS
Device
;
...
...
modules/python/CMakeLists.txt
View file @
2756ae20
...
...
@@ -25,6 +25,7 @@ set(opencv_hdrs
"
${
OPENCV_MODULE_opencv_core_LOCATION
}
/include/opencv2/core/types.hpp"
"
${
OPENCV_MODULE_opencv_core_LOCATION
}
/include/opencv2/core/persistence.hpp"
"
${
OPENCV_MODULE_opencv_core_LOCATION
}
/include/opencv2/core/utility.hpp"
"
${
OPENCV_MODULE_opencv_core_LOCATION
}
/include/opencv2/core/ocl.hpp"
"
${
OPENCV_MODULE_opencv_flann_LOCATION
}
/include/opencv2/flann/miniflann.hpp"
"
${
OPENCV_MODULE_opencv_imgproc_LOCATION
}
/include/opencv2/imgproc.hpp"
"
${
OPENCV_MODULE_opencv_video_LOCATION
}
/include/opencv2/video/background_segm.hpp"
...
...
modules/python/src2/gen2.py
View file @
2756ae20
...
...
@@ -776,7 +776,7 @@ class PythonWrapperGenerator(object):
classname
=
bareclassname
=
""
name
=
decl
[
0
]
dpos
=
name
.
rfind
(
"."
)
if
dpos
>=
0
and
name
[:
dpos
]
!=
"cv"
:
if
dpos
>=
0
and
name
[:
dpos
]
not
in
[
"cv"
,
"cv.ocl"
]
:
classname
=
bareclassname
=
re
.
sub
(
r"^cv\."
,
""
,
name
[:
dpos
])
name
=
name
[
dpos
+
1
:]
dpos
=
classname
.
rfind
(
"."
)
...
...
@@ -785,6 +785,7 @@ class PythonWrapperGenerator(object):
classname
=
classname
.
replace
(
"."
,
"_"
)
cname
=
name
name
=
re
.
sub
(
r"^cv\."
,
""
,
name
)
name
=
name
.
replace
(
"."
,
"_"
)
isconstructor
=
cname
==
bareclassname
cname
=
cname
.
replace
(
"."
,
"::"
)
isclassmethod
=
False
...
...
modules/python/src2/hdr_parser.py
View file @
2756ae20
...
...
@@ -6,6 +6,7 @@ import os, sys, re, string
# the list only for debugging. The real list, used in the real OpenCV build, is specified in CMakeLists.txt
opencv_hdr_list
=
[
"../../core/include/opencv2/core.hpp"
,
"../../core/include/opencv2/core/ocl.hpp"
,
"../../flann/include/opencv2/flann/miniflann.hpp"
,
"../../ml/include/opencv2/ml.hpp"
,
"../../imgproc/include/opencv2/imgproc.hpp"
,
...
...
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