The patch from CVS is attached below. It applies without problems, but apparently the _cv.cpp file which is generated by Swig is not regenerated automatically. Adding --with-swig to the "configure" flags (for example in debian/rules, at the end of "confflags = " line) is a workaround for this.
The bug is known upstream (at http:// sourceforge. net/support/ tracker. php?aid= 1618474) and is fixed in upstream CVS (at http:// opencvlibrary. cvs.sourceforge .net/opencvlibr ary/opencv/ interfaces/ swig/python/ imagedata. i?r1=1. 3&r2=1. 4).
The patch from CVS is attached below. It applies without problems, but apparently the _cv.cpp file which is generated by Swig is not regenerated automatically. Adding --with-swig to the "configure" flags (for example in debian/rules, at the end of "confflags = " line) is a workaround for this.