diff options
author | taw27 <taw27@bf6ca9ba-c028-0410-8290-897cf20841d1> | 2007-11-22 16:08:48 +0000 |
---|---|---|
committer | taw27 <taw27@bf6ca9ba-c028-0410-8290-897cf20841d1> | 2007-11-22 16:08:48 +0000 |
commit | c1ada5f6bc86650342c9f8eafc676fc47e2eed22 (patch) | |
tree | 1657e45edad57acc3c72605e313b8314a4e048fa /src/prealign.c | |
parent | ddb1283dc4744ec36ad68e45a6a69fc9040a421a (diff) |
Make display of summed image stack optional
git-svn-id: svn://cook.msm.cam.ac.uk:745/diff-tomo/dtr@203 bf6ca9ba-c028-0410-8290-897cf20841d1
Diffstat (limited to 'src/prealign.c')
-rw-r--r-- | src/prealign.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/prealign.c b/src/prealign.c index 9aaa72b..fe3805f 100644 --- a/src/prealign.c +++ b/src/prealign.c @@ -76,7 +76,7 @@ void prealign_do_series(ControlContext *ctx) { /* Sum the image stack, taking pre-existing centres into account if available. * If no centres available, select the brightest pixel from the sum and assign * that as the centre to all the images. */ -void prealign_sum_stack(ImageList *list, int have_centres) { +void prealign_sum_stack(ImageList *list, int have_centres, int sum_stack) { int twidth, theight; int mnorth, msouth, mwest, meast; @@ -170,16 +170,18 @@ void prealign_sum_stack(ImageList *list, int have_centres) { } /* Display */ - total_record.image = image_total; - total_record.width = twidth; - total_record.height = theight; - sum_id = imagedisplay_open(total_record, "Sum of All Images", IMAGEDISPLAY_SHOW_CENTRE | IMAGEDISPLAY_SHOW_TILT_AXIS | IMAGEDISPLAY_FREE); + if ( sum_stack ) { + total_record.image = image_total; + total_record.width = twidth; + total_record.height = theight; + sum_id = imagedisplay_open(total_record, "Sum of All Images", IMAGEDISPLAY_SHOW_CENTRE | IMAGEDISPLAY_SHOW_TILT_AXIS | IMAGEDISPLAY_FREE); + } } #define CENTERING_WINDOW_SIZE 50 -void prealign_fine_centering(ImageList *list) { +void prealign_fine_centering(ImageList *list, int sum_stack) { int i; @@ -243,7 +245,7 @@ void prealign_fine_centering(ImageList *list) { } - prealign_sum_stack(list, TRUE); + prealign_sum_stack(list, TRUE, sum_stack); } |