aboutsummaryrefslogtreecommitdiff
path: root/src/hrs-scaling.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/hrs-scaling.c')
-rw-r--r--src/hrs-scaling.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/hrs-scaling.c b/src/hrs-scaling.c
index c6a5a1b3..15f2c9f9 100644
--- a/src/hrs-scaling.c
+++ b/src/hrs-scaling.c
@@ -407,13 +407,20 @@ static void calculate_esds(struct image *images, int n, RefList *full,
/* Scale the stack of images */
RefList *scale_intensities(struct image *images, int n, RefList *gref,
- int n_threads)
+ int n_threads, int noscale)
{
int i;
double max_corr;
RefList *full = NULL;
const int min_redundancy = 3;
+ if ( noscale ) {
+ for ( i=0; i<n; i++ ) images[i].osf = 1.0;
+ full = lsq_intensities(images, n, n_threads);
+ calculate_esds(images, n, full, n_threads, min_redundancy);
+ return full;
+ }
+
/* No reference -> create an initial list to refine against */
if ( gref == NULL ) {
full = lsq_intensities(images, n, n_threads);