* sets the Python error.
* We need to return 0 here instead of an PyObject to tell Python
* that an error has occured.
- * NOTE (Olivier Bornet): not sure, but this must be language-independant...
*/
%exception
{
try { $action }
catch (...)
{
- return NULL;
+ SWIG_fail;
}
}
%include "sizeof.i"
-/* assign type conversion precedence */
-%typemap(typecheck) CvPoint = SWIGTYPE;
-%typemap(typecheck) CvScalar = SWIGTYPE;
-%typemap(typecheck) CvPoint2D32f = SWIGTYPE;
-
/**
* IplImage has no reference counting of underlying data, which creates problems with double
* frees after accessing subarrays in python -- instead, replace IplImage with CvMat, which
}
%}
%enddef
-