aboutsummaryrefslogtreecommitdiff
path: root/tests/integration_check.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2012-06-07 14:49:28 +0200
committerThomas White <taw@physics.org>2012-06-07 14:49:28 +0200
commit53cf97428ebfc7f53fee5970342a836bf45017ec (patch)
tree76a6b7fa45ee479f837c01cd4095494508ddb5a9 /tests/integration_check.c
parentb6e0b7972e3dbdace0034d439b992faf3ac8c454 (diff)
Use max_adu only for final integration
Saturated pixels seem to be OK during initial peak search
Diffstat (limited to 'tests/integration_check.c')
-rw-r--r--tests/integration_check.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/integration_check.c b/tests/integration_check.c
index 2d18ac5a..21c10f79 100644
--- a/tests/integration_check.c
+++ b/tests/integration_check.c
@@ -64,7 +64,7 @@ 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);
+ &intensity, &sigma, 10.0, 15.0, 17.0, 0);
if ( r == 0 ) {
mean_intensity += intensity;
@@ -125,7 +125,7 @@ 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);
+ &intensity, &sigma, 10.0, 15.0, 17.0, 0);
if ( r == 0 ) {
mean_intensity += intensity;
@@ -205,7 +205,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);
+ 10.0, 15.0, 17.0, 0);
STATUS(" First check: integrate_peak() returned %i", r);
if ( r == 0 ) {
@@ -231,7 +231,7 @@ int main(int argc, char *argv[])
}
r = integrate_peak(&image, 64, 64, &fsp, &ssp, &intensity, &sigma,
- 10.0, 15.0, 17.0);
+ 10.0, 15.0, 17.0, 0);
if ( r ) {
ERROR(" Second check: integrate_peak() returned %i (wrong).\n",
r);
@@ -273,7 +273,7 @@ int main(int argc, char *argv[])
}
r = integrate_peak(&image, 64, 64, &fsp, &ssp, &intensity, &sigma,
- 10.0, 15.0, 17.0);
+ 10.0, 15.0, 17.0, 0);
if ( r ) {
ERROR(" Fifth check: integrate_peak() returned %i (wrong).\n",
r);