# HG changeset patch # User Nicolas Saunier # Date 1500061019 14400 # Node ID 39691b460fca377afd54793b0ba409585e8d2bd6 # Parent 8ac7f61c6e4fc79610d59f9488ac0bb9515962e0 bug correction diff -r 8ac7f61c6e4f -r 39691b460fca scripts/compute-homography.py --- a/scripts/compute-homography.py Fri Jul 14 02:11:21 2017 -0400 +++ b/scripts/compute-homography.py Fri Jul 14 15:36:59 2017 -0400 @@ -57,7 +57,7 @@ plt.tight_layout() videoPts = np.array(plt.ginput(args.nPoints, timeout=3000)) if args.undistort: - videoPts = cvutils.newCameraProject(videoPts, np.linalg.inv(newCameraMatrix)) + videoPts = cvutils.newCameraProject(videoPts.T, np.linalg.inv(newCameraMatrix)).T print('Click on {} points in the world image'.format(args.nPoints)) plt.figure() plt.imshow(worldImg)