From ea8e5c457b96184bd152eb20b72fb15682b18474 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 2 Oct 2012 15:00:47 +0200 Subject: Factorise background mask This fixes a speed regression introduced by dca1938a. --- tests/integration_check.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'tests') diff --git a/tests/integration_check.c b/tests/integration_check.c index d43e5fd2..acadbdf8 100644 --- a/tests/integration_check.c +++ b/tests/integration_check.c @@ -64,7 +64,8 @@ static void third_integration_check(struct image *image, int n_trials, } r = integrate_peak(image, 64, 64, &fsp, &ssp, - &intensity, &sigma, 10.0, 15.0, 17.0, 0); + &intensity, &sigma, 10.0, 15.0, 17.0, + 0, NULL); if ( r == 0 ) { mean_intensity += intensity; @@ -125,7 +126,8 @@ static void fourth_integration_check(struct image *image, int n_trials, } r = integrate_peak(image, 64, 64, &fsp, &ssp, - &intensity, &sigma, 10.0, 15.0, 17.0, 0); + &intensity, &sigma, 10.0, 15.0, 17.0, + 0, NULL); if ( r == 0 ) { mean_intensity += intensity; @@ -207,7 +209,7 @@ int main(int argc, char *argv[]) /* First check: no intensity -> no peak, or very low intensity */ r = integrate_peak(&image, 64, 64, &fsp, &ssp, &intensity, &sigma, - 10.0, 15.0, 17.0, 0); + 10.0, 15.0, 17.0, 0, NULL); STATUS(" First check: integrate_peak() returned %i", r); if ( r == 0 ) { @@ -233,7 +235,7 @@ int main(int argc, char *argv[]) } r = integrate_peak(&image, 64, 64, &fsp, &ssp, &intensity, &sigma, - 10.0, 15.0, 17.0, 0); + 10.0, 15.0, 17.0, 0, NULL); if ( r ) { ERROR(" Second check: integrate_peak() returned %i (wrong).\n", r); @@ -275,7 +277,7 @@ int main(int argc, char *argv[]) } r = integrate_peak(&image, 64, 64, &fsp, &ssp, &intensity, &sigma, - 10.0, 15.0, 17.0, 0); + 10.0, 15.0, 17.0, 0, NULL); if ( r ) { ERROR(" Fifth check: integrate_peak() returned %i (wrong).\n", r); -- cgit v1.2.3