aboutsummaryrefslogtreecommitdiff
path: root/src/prealign.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/prealign.c')
-rw-r--r--src/prealign.c16
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);
}