# HG changeset patch # User Nicolas Saunier # Date 1288969651 14400 # Node ID 40e8e3bb3702321d6bec93dbad93805e30367d02 # Parent 290fceb125d222ea45d25f585cf7bcd690bd9ef9 corrected projection bugs diff -r 290fceb125d2 -r 40e8e3bb3702 python/cvutils.py --- a/python/cvutils.py Thu Nov 04 17:40:07 2010 -0400 +++ b/python/cvutils.py Fri Nov 05 11:07:31 2010 -0400 @@ -31,9 +31,9 @@ from numpy.core.multiarray import array from numpy.lib.function_base import insert if (homography!=None) and (len(homography)>0): - pAugmented = insert(array(p.aslist()), [2],[1], axis=0) + pAugmented = insert(array(p), [2],[1], axis=0) tmp = dot(homography, pAugmented) - return Point(tmp[0]/tmp[2], tmp[1]/tmp[2]) + return [tmp[0]/tmp[2], tmp[1]/tmp[2]] else: return p