aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2012-10-02 15:00:47 +0200
committerThomas White <taw@physics.org>2012-10-02 15:01:33 +0200
commitea8e5c457b96184bd152eb20b72fb15682b18474 (patch)
tree3a70afa8a775a4bb49e0364e4fff97ce8c569383 /tests
parentff1c76dc0482e691c09ab211744a427b38ae7b47 (diff)
Factorise background mask
This fixes a speed regression introduced by dca1938a.
Diffstat (limited to 'tests')
-rw-r--r--tests/integration_check.c12
1 files changed, 7 insertions, 5 deletions
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);