aboutsummaryrefslogtreecommitdiff
path: root/src/hrs-scaling.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2011-11-16 11:09:22 +0100
committerThomas White <taw@physics.org>2012-02-22 15:27:41 +0100
commitb2a2bf8d82fbc829f406d4ed05575505b0331bb1 (patch)
tree910f08897fb4a73fccc57542d6befe7630778e2a /src/hrs-scaling.c
parent8737092e3406f9d4b792c11b186b11f2a1548a69 (diff)
partialator: Add --no-scale option
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);