diff options
-rw-r--r-- | warp.py | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -5,11 +5,12 @@ import numpy xlist=[] ylist=[] -xres=1280 -yres=720 +xres=1280/5 +yres=720/5 #constant = 1./math.sqrt((xres/2)**2 + (yres/2)**2) -constant = 1./(xres/2.)*30./42. +constant = 1./(1280/2.)*30./42. +print constant for y in xrange(0,yres): xtmp=[] |