Closed GoogleCodeExporter closed 8 years ago
Thanks for raising the issue.
CvMat in Python is _not_ supposed to run fast when dealing with an operation
that
requires a large amount of per-element accesses. This is because the interface
is
written purely in Python. You should try to use C-based functions that do the
same
job instead. For example, "cvSetZero(l_mat)" or "l__mat_numpy[:] = 0".
I can write a C function to make access to CvMat's elements faster but it will
make
ctypes-opencv non-pure. Besides, people have already done that in other
projects,
e.g. numpy. It is best to avoid reinventing the wheel.
Best,
Minh Tri
Original comment by pmtri80@gmail.com
on 16 Jul 2009 at 11:44
Original issue reported on code.google.com by
kpo...@gmail.com
on 16 Jul 2009 at 11:26