Mercurial > hg > nsaunier > traffic-intelligence
comparison python/cvutils.py @ 315:82b9be447608
bugfix for dot import
| author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
|---|---|
| date | Fri, 12 Apr 2013 13:16:38 -0400 |
| parents | ca9131968bce |
| children | 6b65b26c1e46 |
comparison
equal
deleted
inserted
replaced
| 314:539e2b4cfaa3 | 315:82b9be447608 |
|---|---|
| 171 out.write('\n') | 171 out.write('\n') |
| 172 | 172 |
| 173 def projectArray(homography, points): | 173 def projectArray(homography, points): |
| 174 '''Returns the coordinates of the projected points (format 2xN points) | 174 '''Returns the coordinates of the projected points (format 2xN points) |
| 175 through homography''' | 175 through homography''' |
| 176 from numpy.core._dotblas import dot | 176 from numpy.core import dot |
| 177 from numpy.core.multiarray import array | 177 from numpy.core.multiarray import array |
| 178 from numpy.lib.function_base import append | 178 from numpy.lib.function_base import append |
| 179 | 179 |
| 180 if points.shape[0] != 2: | 180 if points.shape[0] != 2: |
| 181 raise Exception('points of dimension {0} {1}'.format(points.shape[0], points.shape[1])) | 181 raise Exception('points of dimension {0} {1}'.format(points.shape[0], points.shape[1])) |
