aboutsummaryrefslogtreecommitdiff
path: root/src/reproject.c
diff options
context:
space:
mode:
authortaw27 <taw27@bf6ca9ba-c028-0410-8290-897cf20841d1>2007-09-05 00:17:20 +0000
committertaw27 <taw27@bf6ca9ba-c028-0410-8290-897cf20841d1>2007-09-05 00:17:20 +0000
commit33812018c1584e0ccdea764ae971c1dd82e7a5d3 (patch)
tree880aa959290333588223e59430acce60d13038a7 /src/reproject.c
parent0369b6427674594f3ad52f562f90a057c0cdbd7a (diff)
Visualise various things for debugging
git-svn-id: svn://cook.msm.cam.ac.uk:745/diff-tomo/dtr@116 bf6ca9ba-c028-0410-8290-897cf20841d1
Diffstat (limited to 'src/reproject.c')
-rw-r--r--src/reproject.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/reproject.c b/src/reproject.c
index ffd49b9..4f0dd3c 100644
--- a/src/reproject.c
+++ b/src/reproject.c
@@ -103,6 +103,8 @@ ImageReflection *reproject_get_reflections(ImageRecord image, size_t *n, Reflect
uyt = cos(tilt); uzt = -sin(tilt); /* tilt it (uxt not needed) */
ux = uyt*-sin(omega); uy = uyt*cos(omega); uz = uzt; /* rotate it */
+ if ( i == 0 ) reflection_add(ctx->reflectionctx, ux*50, uy*50, uz*50, 1, REFLECTION_VECTOR_MARKER_2);
+
/* Calculate azimuth of point in image (clockwise from "up", will be changed later) */
cx = nz*yi - ny*zi; cy = nx*zi - nz*xi; cz = ny*xi - nx*yi; /* c = (-n) x i */
psi = angle_between(cx, cy, cz, ux, uy, uz);