summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2013-10-10 23:40:06 +0200
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2013-10-10 23:40:06 +0200
commit4b10f41eb35e32951516c8dcce69410ef2247a4a (patch)
tree5590ace16c720aa5b9855e8cd5e6321306351fb2
parent907709d525f7d73c59d9ebfdf279debdb961072e (diff)
use proper distance for distortion correction
-rw-r--r--src/lsq_rectilinear.mac2
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$