aboutsummaryrefslogtreecommitdiff
path: root/src/prealign.c
diff options
context:
space:
mode:
authortaw27 <taw27@bf6ca9ba-c028-0410-8290-897cf20841d1>2007-08-29 17:41:06 +0000
committertaw27 <taw27@bf6ca9ba-c028-0410-8290-897cf20841d1>2007-08-29 17:41:06 +0000
commit9852df6e6d82a75d52b7269ceeebeca7ee02ead3 (patch)
tree08b76e19834f2131bd997ed2dfc40f910881f9d8 /src/prealign.c
parent57645119798cd7db0d64807d8b617e13ac5e65c8 (diff)
Give image centres in qdrp.rc if desired
git-svn-id: svn://cook.msm.cam.ac.uk:745/diff-tomo/dtr@90 bf6ca9ba-c028-0410-8290-897cf20841d1
Diffstat (limited to 'src/prealign.c')
-rw-r--r--src/prealign.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/prealign.c b/src/prealign.c
index a89b8de..b72943c 100644
--- a/src/prealign.c
+++ b/src/prealign.c
@@ -61,6 +61,7 @@ void prealign_do_series(ControlContext *ctx) {
PreAlignBlock *pb;
+ ctx->have_centres = 1; /* Inhibit "centre-finding by stacking" */
pb = malloc(sizeof(PreAlignBlock));
pb->n = 0;
pb->ctx = ctx;
@@ -94,7 +95,7 @@ void prealign_sum_stack(ControlContext *ctx) {
memset(image_total, 0, twidth * theight * sizeof(uint16_t));
/* Add the image stack together */
- if ( !ctx->prealign ) {
+ if ( !ctx->have_centres ) {
int max_x, max_y;
uint16_t max_val;
@@ -135,7 +136,7 @@ void prealign_sum_stack(ControlContext *ctx) {
total_record.y_centre = max_y;
} else {
-
+
for ( i=0; i<ctx->n_images; i++ ) {
int xoffs, yoffs;