From fbb4796e81dcb2dc2bcf792917f2391f799653c8 Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Thu, 14 Dec 2006 18:58:35 +0100 Subject: works quite well now --- src/lsq_funcs.mac | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/lsq_funcs.mac') diff --git a/src/lsq_funcs.mac b/src/lsq_funcs.mac index 0056185..d57008e 100644 --- a/src/lsq_funcs.mac +++ b/src/lsq_funcs.mac @@ -2,14 +2,14 @@ * This is the basic pinhole projection model with distortion correction */ -x_undist_unrot : tan(m_view - c_view) * scale$ -y_undist_unrot : tan(c_nick - m_nick) * scale$ +x_undist_unrot : tan(m_view - c_view) $ +y_undist_unrot : tan(c_nick - m_nick) $ d : y_undist_unrot ^ 2 + x_undist_unrot ^ 2$ -dist_fact : d ^2 * k1 + d * k0$ +dist_fact : d ^ 2 * k1 + d * k0$ x_unrot : x_undist_unrot * (1 + dist_fact)$ y_unrot : y_undist_unrot * (1 + dist_fact)$ -x : y_unrot * sin(c_tilt) + x_unrot * cos(c_tilt)$ -y : y_unrot * cos(c_tilt) - x_unrot * sin(c_tilt)$ +x : scale * (y_unrot * sin(c_tilt) + x_unrot * cos(c_tilt))$ +y : scale * (y_unrot * cos(c_tilt) - x_unrot * sin(c_tilt))$ /* * Some mangling for C code generation -- cgit v1.2.3