diff options
author | Florian Jung <flo@windfisch.org> | 2014-08-27 00:53:01 +0200 |
---|---|---|
committer | Florian Jung <flo@windfisch.org> | 2014-08-27 00:53:01 +0200 |
commit | 910f2efa1cdb93f479eef61829a5e6ef332c4636 (patch) | |
tree | 857253f93204d723c16576c15aff546cdb2d3355 | |
parent | 3e064160794a7835c77a376e257d832261371c24 (diff) |
zoom
-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=[] |