diff options
author | taw27 <taw27@bf6ca9ba-c028-0410-8290-897cf20841d1> | 2007-08-28 12:43:49 +0000 |
---|---|---|
committer | taw27 <taw27@bf6ca9ba-c028-0410-8290-897cf20841d1> | 2007-08-28 12:43:49 +0000 |
commit | 0ef8783c72948f9c8c4af1170ae2d8414a2bd13e (patch) | |
tree | e11e80ab4441480c9fb621202b70cc81b11cce32 /src/reproject.c | |
parent | 737154b1ef16ef037df988eaa64a5063df1d815c (diff) |
Add skeleton prealignment procedure
git-svn-id: svn://cook.msm.cam.ac.uk:745/diff-tomo/dtr@79 bf6ca9ba-c028-0410-8290-897cf20841d1
Diffstat (limited to 'src/reproject.c')
-rw-r--r-- | src/reproject.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/reproject.c b/src/reproject.c index f3c3480..bec9a31 100644 --- a/src/reproject.c +++ b/src/reproject.c @@ -81,7 +81,7 @@ ImageReflection *reproject_get_reflections(ImageRecord image, size_t *n, Reflect ydd = (yddd/cos(tilt) - zddd*tan(tilt)/cos(tilt))/(1+tan(tilt)*tan(tilt)); zdd = (-zddd-ydd*sin(tilt))/cos(tilt); - yd = (ydd-xdd*tan(omega))/(sin(omega)*tan(omega)+cos(omega)); + yd = (ydd-xdd*tan(omega))/(sin(omega)*tan(omega)+cos(omega)); /* Needs to be done first */ xd = (xdd+yd*sin(omega))/cos(omega); zd = zdd; @@ -117,7 +117,7 @@ ImageReflection *reproject_get_reflections(ImageRecord image, size_t *n, Reflect break; } - printf("Reflection %i at %i,%i\n", i, refl[i-1].x, refl[i-1].y); + //printf("Reflection %i at %i,%i\n", i, refl[i-1].x, refl[i-1].y); } else { //fprintf(stderr, "Reflection failed sanity test (x=%f, y=%f)\n", x, y); @@ -129,7 +129,7 @@ ImageReflection *reproject_get_reflections(ImageRecord image, size_t *n, Reflect } while ( reflection ); - printf("Found %i reflections in image\n", i); + //printf("Found %i reflections in image\n", i); *n = i; return refl; |