projects
/
profile
/
ivi
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5633cf0
)
Export CV_PI explcitly, #758.
author
James Bowman
<no@email>
Tue, 14 Dec 2010 00:13:42 +0000
(
00:13
+0000)
committer
James Bowman
<no@email>
Tue, 14 Dec 2010 00:13:42 +0000
(
00:13
+0000)
modules/python/cv.cpp
patch
|
blob
|
history
modules/python/defs
patch
|
blob
|
history
diff --git
a/modules/python/cv.cpp
b/modules/python/cv.cpp
index
0112218
..
c5242c3
100644
(file)
--- a/
modules/python/cv.cpp
+++ b/
modules/python/cv.cpp
@@
-3962,6
+3962,9
@@
void initcv()
convert.to = &cvmat_Type;
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 PUBLISHU(I) PyDict_SetItemString(d, #I, PyLong_FromUnsignedLong(I))
#define PUBLISH2(I, value) PyDict_SetItemString(d, #I, PyLong_FromLong(value))
diff --git
a/modules/python/defs
b/modules/python/defs
index
20c80a1
..
b8f3907
100644
(file)
--- a/
modules/python/defs
+++ b/
modules/python/defs
@@
-330,7
+330,6
@@
#define CV_IMWRITE_PXM_BINARY 32
#define IPL_ORIGIN_TL 0
#define IPL_ORIGIN_BL 1
-#define CV_PI
#define CV_GAUSSIAN_5x5
#define CV_CN_MAX
#define CV_WINDOW_AUTOSIZE 1