diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2013-10-10 23:40:06 +0200 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2013-10-10 23:40:06 +0200 |
commit | 4b10f41eb35e32951516c8dcce69410ef2247a4a (patch) | |
tree | 5590ace16c720aa5b9855e8cd5e6321306351fb2 /src | |
parent | 907709d525f7d73c59d9ebfdf279debdb961072e (diff) |
use proper distance for distortion correction
Diffstat (limited to 'src')
-rw-r--r-- | src/lsq_rectilinear.mac | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lsq_rectilinear.mac b/src/lsq_rectilinear.mac index bbe60b8..95ed273 100644 --- a/src/lsq_rectilinear.mac +++ b/src/lsq_rectilinear.mac @@ -25,7 +25,7 @@ x_rot : y * sin(c_tilt) + x * cos(c_tilt) + x0$ y_rot : y * cos(c_tilt) - x * sin(c_tilt)$ /* distortion correction */ -d : x_rot ^ 2 + y_rot ^ 2$ +d : sqrt(x_rot ^ 2 + y_rot ^ 2)$ dist_fact : d ^ 2 * k1 + d * k0$ x_dist : x_rot * (1 + dist_fact) * scale$ y_dist : y_rot * (1 + dist_fact) * scale$ |