Mercurial Hosting > traffic-intelligence
changeset 63:40e8e3bb3702
corrected projection bugs
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Fri, 05 Nov 2010 11:07:31 -0400 |
parents | 290fceb125d2 |
children | c75bcdaed00f |
files | python/cvutils.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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