Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Ok, so I figured it out! ;-)

It wants an array with size (1,n,2). The lines

pt1 = np.reshape(pt1,(1,n,2))
pt2 = np.reshape(pt2,(1,n,2))

did the trick.

This is, however, not abundantly clear from the documentation..

I know the python functions are created automatically at build time, so perhaps the problem is not with python, but that the underlying C functions are ambivalent. A clear and concise style, where related functions take the same arguments, is something to strive for.