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
af86e87c
Commit
af86e87c
authored
Dec 14, 2010
by
James Bowman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Export CV_PI explcitly, #758.
parent
5633cf03
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
cv.cpp
modules/python/cv.cpp
+3
-0
defs
modules/python/defs
+0
-1
No files found.
modules/python/cv.cpp
View file @
af86e87c
...
@@ -3962,6 +3962,9 @@ void initcv()
...
@@ -3962,6 +3962,9 @@ void initcv()
convert
.
to
=
&
cvmat_Type
;
convert
.
to
=
&
cvmat_Type
;
PyDict_SetItemString
(
d
,
"cvmat"
,
convert
.
o
);
PyDict_SetItemString
(
d
,
"cvmat"
,
convert
.
o
);
// AFAIK the only floating-point constant
PyDict_SetItemString
(
d
,
"CV_PI"
,
PyFloat_FromDouble
(
CV_PI
));
#define PUBLISH(I) PyDict_SetItemString(d, #I, PyInt_FromLong(I))
#define PUBLISH(I) PyDict_SetItemString(d, #I, PyInt_FromLong(I))
#define PUBLISHU(I) PyDict_SetItemString(d, #I, PyLong_FromUnsignedLong(I))
#define PUBLISHU(I) PyDict_SetItemString(d, #I, PyLong_FromUnsignedLong(I))
#define PUBLISH2(I, value) PyDict_SetItemString(d, #I, PyLong_FromLong(value))
#define PUBLISH2(I, value) PyDict_SetItemString(d, #I, PyLong_FromLong(value))
...
...
modules/python/defs
View file @
af86e87c
...
@@ -330,7 +330,6 @@
...
@@ -330,7 +330,6 @@
#define CV_IMWRITE_PXM_BINARY 32
#define CV_IMWRITE_PXM_BINARY 32
#define IPL_ORIGIN_TL 0
#define IPL_ORIGIN_TL 0
#define IPL_ORIGIN_BL 1
#define IPL_ORIGIN_BL 1
#define CV_PI
#define CV_GAUSSIAN_5x5
#define CV_GAUSSIAN_5x5
#define CV_CN_MAX
#define CV_CN_MAX
#define CV_WINDOW_AUTOSIZE 1
#define CV_WINDOW_AUTOSIZE 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