From bc36079638b4ff3d0b7b3476dc5125bb1fc38c91 Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Fri, 2 May 2008 15:48:58 +0200 Subject: fix rectilinear projection --- src/lsq_rectilinear.mac | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/lsq_rectilinear.mac b/src/lsq_rectilinear.mac index 5bd7ac9..d1abf4e 100644 --- a/src/lsq_rectilinear.mac +++ b/src/lsq_rectilinear.mac @@ -2,8 +2,11 @@ * rectilinear (pinhole) projection model with distortion correction */ -x : tan(m_view - c_view)$ -y : tan(c_nick - m_nick)$ +a_v : m_view - c_view$ +a_h : c_nick - atan (tan (m_nick) / cos(a_v))$ + +x : tan(a_v)$ +y : tan(a_h)$ x_rot : y * sin(c_tilt) + x * cos(c_tilt)+x0$ y_rot : y * cos(c_tilt) - x * sin(c_tilt)$ d : x_rot ^ 2 + y_rot ^ 2$ -- cgit v1.2.3