Mercurial > hg > nsaunier > traffic-intelligence
comparison scripts/rescale-homography.py @ 936:56cc8a1f7082
removed all old versions of projection methods
| author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
|---|---|
| date | Fri, 14 Jul 2017 16:48:42 -0400 |
| parents | 8f8f4375e441 |
| children | 933670761a57 |
comparison
equal
deleted
inserted
replaced
| 935:0e63a918a1ca | 936:56cc8a1f7082 |
|---|---|
| 18 imgPoints = np.array([[10,10], | 18 imgPoints = np.array([[10,10], |
| 19 [10,20], | 19 [10,20], |
| 20 [20,20], | 20 [20,20], |
| 21 [20,10]]) | 21 [20,10]]) |
| 22 | 22 |
| 23 wldPoints = cvutils.projectArray(homography, imgPoints.T).T | 23 wldPoints = cvutils.homographyProject(imgPoints.T, homography).T |
| 24 | 24 |
| 25 newSize = float(sys.argv[3]) | 25 newSize = float(sys.argv[3]) |
| 26 originalSize = float(sys.argv[2]) | 26 originalSize = float(sys.argv[2]) |
| 27 imgPoints = imgPoints*newSize/originalSize | 27 imgPoints = imgPoints*newSize/originalSize |
| 28 | 28 |
