diff options
author | Thomas White <taw@physics.org> | 2012-03-09 18:20:36 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-03-09 18:20:36 +0100 |
commit | 4be9287d7ae69bcfee52efed5a108f31c0f40f7e (patch) | |
tree | 014346634041b8569e7a95ef22b0b7252ab6b28a /tests/integration_check.c | |
parent | 385cd10cd9acaa8c116da3ccb18e82ef41356b74 (diff) |
indexamajig: Take integration radii on command line
Diffstat (limited to 'tests/integration_check.c')
-rw-r--r-- | tests/integration_check.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/tests/integration_check.c b/tests/integration_check.c index 242e4076..eeccc6ec 100644 --- a/tests/integration_check.c +++ b/tests/integration_check.c @@ -32,10 +32,11 @@ #include <stdio.h> #include <image.h> -#include <peaks.h> #include <utils.h> #include <beam-parameters.h> +#include "../libcrystfel/src/peaks.c" + /* The third integration check draws a Poisson background and checks that, on * average, it gets subtracted by the background subtraction. */ @@ -63,7 +64,7 @@ static void third_integration_check(struct image *image, int n_trials, } r = integrate_peak(image, 64, 64, &fsp, &ssp, - &intensity, &sigma); + &intensity, &sigma, 10.0, 15.0, 17.0); if ( r == 0 ) { mean_intensity += intensity; @@ -128,7 +129,7 @@ static void fourth_integration_check(struct image *image, int n_trials, } r = integrate_peak(image, 64, 64, &fsp, &ssp, - &intensity, &sigma); + &intensity, &sigma, 10.0, 15.0, 17.0); if ( r == 0 ) { mean_intensity += intensity; @@ -333,7 +334,8 @@ int main(int argc, char *argv[]) memset(image.data, 0, 128*128*sizeof(float)); /* First check: no intensity -> no peak, or very low intensity */ - r = integrate_peak(&image, 64, 64, &fsp, &ssp, &intensity, &sigma); + r = integrate_peak(&image, 64, 64, &fsp, &ssp, &intensity, &sigma, + 10.0, 15.0, 17.0); STATUS(" First check: integrate_peak() returned %i", r); if ( r == 0 ) { @@ -359,7 +361,8 @@ int main(int argc, char *argv[]) } } - r = integrate_peak(&image, 64, 64, &fsp, &ssp, &intensity, &sigma); + r = integrate_peak(&image, 64, 64, &fsp, &ssp, &intensity, &sigma, + 10.0, 15.0, 17.0); if ( r ) { ERROR(" Second check: integrate_peak() returned %i (wrong).\n", r); |