diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2008-05-24 00:13:08 +0200 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2008-05-24 00:13:08 +0200 |
commit | d417ed2632eb97f133347db2201da447632a3dc9 (patch) | |
tree | e3465315fbb8e5e07395b3856cfdaaf3a4fb048f | |
parent | bac85749b75971ee75d635bea3117f8a4f640e1c (diff) |
comments
-rw-r--r-- | src/lsq_rectilinear.mac | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lsq_rectilinear.mac b/src/lsq_rectilinear.mac index 4ed1e09..8e0c0f3 100644 --- a/src/lsq_rectilinear.mac +++ b/src/lsq_rectilinear.mac @@ -2,7 +2,7 @@ * rectilinear (pinhole) projection model with distortion correction */ -/* switch to cartesian coordinates for nick rotation */ +/* switch to cartesian coordinates */ c_x : cos(m_nick) * cos(m_view - c_view)$ c_y : cos(m_nick) * sin(m_view - c_view)$ c_z : sin(m_nick)$ @@ -12,8 +12,11 @@ c_x_rot : cos(c_nick) * c_x$ + sin(c_nick) * c_z$ c_y_rot : c_y$ c_z_rot : -sin(c_nick) * c_x + cos(c_nick) * c_z$ +/* pinhole projection */ x : c_y_rot / c_x_rot$ y : - c_z_rot / c_x_rot$ + +/* rotation around view axis */ x_rot : y * sin(c_tilt) + x * cos(c_tilt)+x0$ y_rot : y * cos(c_tilt) - x * sin(c_tilt)$ |