Lines Matching refs:PyObject

20 static PyObject* opencv_error = 0;
125 static PyObject* failmsgp(const char *fmt, ...) in failmsgp()
144 UMatData* allocate(PyObject* o, int dims, const int* sizes, int type, size_t* step) const in allocate()
180 PyObject* o = PyArray_SimpleNew(dims, _sizes, typenum); in allocate()
196 PyObject* o = (PyObject*)u->userdata; in deallocate()
209 bool pyopencv_to(PyObject* obj, T& p, const char* name = "<unknown>");
212 PyObject* pyopencv_from(const T& src);
217 static bool pyopencv_to(PyObject* o, Mat& m, const ArgInfo info) in pyopencv_to()
229 double v[] = {static_cast<double>(PyInt_AsLong((PyObject*)o)), 0., 0., 0.}; in pyopencv_to()
235 double v[] = {PyFloat_AsDouble((PyObject*)o), 0., 0., 0.}; in pyopencv_to()
241 int i, sz = (int)PyTuple_Size((PyObject*)o); in pyopencv_to()
245 PyObject* oi = PyTuple_GET_ITEM(o, i); in pyopencv_to()
340 o = (PyObject*) oarr; in pyopencv_to()
385 bool pyopencv_to(PyObject* o, Mat& m, const char* name) in pyopencv_to()
391 PyObject* pyopencv_from(const Mat& m) in pyopencv_from()
402 PyObject* o = (PyObject*)p->u->userdata; in pyopencv_from()
408 bool pyopencv_to(PyObject *o, Scalar& s, const char *name) in pyopencv_to()
413 PyObject *fi = PySequence_Fast(o, name); in pyopencv_to()
422 PyObject *item = PySequence_Fast_GET_ITEM(fi, i); in pyopencv_to()
443 PyObject* pyopencv_from(const Scalar& src) in pyopencv_from()
449 PyObject* pyopencv_from(const bool& value) in pyopencv_from()
456 PyObject* pyopencv_from(const Status& value) in pyopencv_from()
463 bool pyopencv_to(PyObject* obj, bool& value, const char* name) in pyopencv_to()
476 PyObject* pyopencv_from(const size_t& value) in pyopencv_from()
482 bool pyopencv_to(PyObject* obj, size_t& value, const char* name) in pyopencv_to()
492 PyObject* pyopencv_from(const int& value) in pyopencv_from()
499 PyObject* pyopencv_from(const cvflann_flann_algorithm_t& value) in pyopencv_from()
505 PyObject* pyopencv_from(const cvflann_flann_distance_t& value) in pyopencv_from()
512 bool pyopencv_to(PyObject* obj, int& value, const char* name) in pyopencv_to()
527 PyObject* pyopencv_from(const uchar& value) in pyopencv_from()
533 bool pyopencv_to(PyObject* obj, uchar& value, const char* name) in pyopencv_to()
544 PyObject* pyopencv_from(const double& value) in pyopencv_from()
550 bool pyopencv_to(PyObject* obj, double& value, const char* name) in pyopencv_to()
563 PyObject* pyopencv_from(const float& value) in pyopencv_from()
569 bool pyopencv_to(PyObject* obj, float& value, const char* name) in pyopencv_to()
582 PyObject* pyopencv_from(const int64& value) in pyopencv_from()
588 PyObject* pyopencv_from(const String& value) in pyopencv_from()
594 bool pyopencv_to(PyObject* obj, String& value, const char* name) in pyopencv_to()
607 bool pyopencv_to(PyObject* obj, Size& sz, const char* name) in pyopencv_to()
616 PyObject* pyopencv_from(const Size& sz) in pyopencv_from()
622 bool pyopencv_to(PyObject* obj, Rect& r, const char* name) in pyopencv_to()
631 PyObject* pyopencv_from(const Rect& r) in pyopencv_from()
637 bool pyopencv_to(PyObject* obj, Range& r, const char* name) in pyopencv_to()
651 PyObject* pyopencv_from(const Range& r) in pyopencv_from()
657 bool pyopencv_to(PyObject* obj, Point& p, const char* name) in pyopencv_to()
673 bool pyopencv_to(PyObject* obj, Point2f& p, const char* name) in pyopencv_to()
689 bool pyopencv_to(PyObject* obj, Point2d& p, const char* name) in pyopencv_to()
706 PyObject* pyopencv_from(const Point& p) in pyopencv_from()
712 PyObject* pyopencv_from(const Point2f& p) in pyopencv_from()
718 bool pyopencv_to(PyObject* obj, Vec3d& v, const char* name) in pyopencv_to()
727 PyObject* pyopencv_from(const Vec3d& v) in pyopencv_from()
733 PyObject* pyopencv_from(const Vec2d& v) in pyopencv_from()
739 PyObject* pyopencv_from(const Point2d& p) in pyopencv_from()
746 static bool to(PyObject* obj, std::vector<_Tp>& value, const ArgInfo info) in to()
759 PyObject *seq = PySequence_Fast(obj, info.name); in to()
767 PyObject** items = PySequence_Fast_ITEMS(seq); in to()
771 PyObject* item = items[i]; in to()
772 PyObject* seq_i = 0; in to()
773 PyObject** items_i = &item; in to()
811 PyObject* item_ij = items_i[j]; in to()
844 static PyObject* from(const std::vector<_Tp>& value) in from()
854 bool pyopencv_to(PyObject* obj, std::vector<_Tp>& value, const ArgInfo info) in pyopencv_to()
860 PyObject* pyopencv_from(const std::vector<_Tp>& value) in pyopencv_from()
865 template<typename _Tp> static inline bool pyopencv_to_generic_vec(PyObject* obj, std::vector<_Tp>& … in pyopencv_to_generic_vec()
871 PyObject *seq = PySequence_Fast(obj, info.name); in pyopencv_to_generic_vec()
877 PyObject** items = PySequence_Fast_ITEMS(seq); in pyopencv_to_generic_vec()
881 PyObject* item = items[i]; in pyopencv_to_generic_vec()
889 template<typename _Tp> static inline PyObject* pyopencv_from_generic_vec(const std::vector<_Tp>& va… in pyopencv_from_generic_vec()
892 PyObject* seq = PyList_New(n); in pyopencv_from_generic_vec()
895 PyObject* item = pyopencv_from(value[i]); in pyopencv_from_generic_vec()
911 static bool to(PyObject* obj, std::vector<std::vector<_Tp> >& value, const ArgInfo info) in to()
916 static PyObject* from(const std::vector<std::vector<_Tp> >& value) in from()
924 static bool to(PyObject* obj, std::vector<Mat>& value, const ArgInfo info) in to()
929 static PyObject* from(const std::vector<Mat>& value) in from()
937 static bool to(PyObject* obj, std::vector<KeyPoint>& value, const ArgInfo info) in to()
942 static PyObject* from(const std::vector<KeyPoint>& value) in from()
950 static bool to(PyObject* obj, std::vector<DMatch>& value, const ArgInfo info) in to()
955 static PyObject* from(const std::vector<DMatch>& value) in from()
963 static bool to(PyObject* obj, std::vector<String>& value, const ArgInfo info) in to()
968 static PyObject* from(const std::vector<String>& value) in from()
975 bool pyopencv_to(PyObject *obj, TermCriteria& dst, const char *name) in pyopencv_to()
984 PyObject* pyopencv_from(const TermCriteria& src) in pyopencv_from()
990 bool pyopencv_to(PyObject *obj, RotatedRect& dst, const char *name) in pyopencv_to()
999 PyObject* pyopencv_from(const RotatedRect& src) in pyopencv_from()
1005 PyObject* pyopencv_from(const Moments& m) in pyopencv_from()
1019 bool pyopencv_to(PyObject *o, cv::flann::IndexParams& p, const char *name) in pyopencv_to()
1023 PyObject* key = NULL; in pyopencv_to()
1024 PyObject* item = NULL; in pyopencv_to()
1067 bool pyopencv_to(PyObject* obj, cv::flann::SearchParams & value, const char * name) in pyopencv_to()
1074 bool pyopencv_to(PyObject *o, Ptr<T>& p, const char *name) in pyopencv_to()
1082 bool pyopencv_to(PyObject *o, cvflann::flann_distance_t& dist, const char *name) in pyopencv_to()
1096 bool pyopencv_to(PyObject *obj, CvTermCriteria& dst, const char *name) in pyopencv_to()
1105 bool pyopencv_to(PyObject* obj, CvSlice& r, const char* name) in pyopencv_to()
1125 PyObject *o = (PyObject*)param; in OnMouse()
1126 PyObject *args = Py_BuildValue("iiiiO", event, x, y, flags, PyTuple_GetItem(o, 1)); in OnMouse()
1128 PyObject *r = PyObject_Call(PyTuple_GetItem(o, 0), args, NULL); in OnMouse()
1138 static PyObject *pycvSetMouseCallback(PyObject*, PyObject *args, PyObject *kw) in pycvSetMouseCallback() argument
1142 PyObject *on_mouse; in pycvSetMouseCallback()
1143 PyObject *param = NULL; in pycvSetMouseCallback()
1164 PyObject *o = (PyObject*)param; in OnChange()
1165 PyObject *args = Py_BuildValue("(i)", pos); in OnChange()
1166 PyObject *r = PyObject_Call(PyTuple_GetItem(o, 0), args, NULL); in OnChange()
1174 static PyObject *pycvCreateTrackbar(PyObject*, PyObject *args) in pycvCreateTrackbar() argument
1176 PyObject *on_change; in pycvCreateTrackbar()
1195 static int convert_to_char(PyObject *o, char *dst, const char *name = "no_name") in convert_to_char()
1237 static void init_submodule(PyObject * root, const char * name, PyMethodDef * methods, ConstDef * co… in init_submodule()
1251 PyObject * d = PyModule_GetDict(root); in init_submodule()
1252 PyObject * submod = PyDict_GetItemString(d, short_name.c_str()); in init_submodule()
1264 PyObject * d = PyModule_GetDict(root); in init_submodule()
1267 PyObject * method_obj = PyCFunction_NewEx(m, NULL, NULL); in init_submodule()
1290 extern "C" CV_EXPORTS PyObject* PyInit_cv2();
1301 PyObject* PyInit_cv2() in PyInit_cv2()
1313 PyObject* m = PyModule_Create(&cv2_moduledef);
1315 PyObject* m = Py_InitModule(MODULESTR, special_methods);
1319 PyObject* d = PyModule_GetDict(m);