summaryrefslogtreecommitdiff
path: root/stabilize.py
diff options
context:
space:
mode:
Diffstat (limited to 'stabilize.py')
-rw-r--r--stabilize.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/stabilize.py b/stabilize.py
index c24f1f8..ab11b51 100644
--- a/stabilize.py
+++ b/stabilize.py
@@ -45,7 +45,7 @@ def get_maps(xres,yres):
yy=(y-yres/2.)/xres # yes, xres.
for x in xrange(0,xres):
- xx=(x-xres/2.)/xres
+ xx=math.tan((x-xres/2.)/xres)
dist = math.sqrt(xx**2 + yy**2)
@@ -67,7 +67,7 @@ def get_maps(xres,yres):
return xmap,ymap
-xmap,ymap = get_maps(1600/2,900/2)
+xmap,ymap = get_maps(1280,720)