aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2012-03-07 17:50:06 +0100
committerThomas White <taw@physics.org>2012-03-07 17:50:06 +0100
commit0014a606ed074e7438c6536cf0fc5a7d5bd790c9 (patch)
treecfb431919e77d279d657bbdc50096e03db5da3f0 /tests
parenta16291dd7c0826428b4d3d3b2ba3f48540f3c1c7 (diff)
indexamajig: Remove polarization correction
It was totally broken and wrong, and just added noise to the data, and it should be done at the scaling stage instead of now.
Diffstat (limited to 'tests')
-rw-r--r--tests/integration_check.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/integration_check.c b/tests/integration_check.c
index a73026f9..aa9e2705 100644
--- a/tests/integration_check.c
+++ b/tests/integration_check.c
@@ -60,7 +60,7 @@ static void third_integration_check(struct image *image, int n_trials,
}
}
integrate_peak(image, 64, 64, &fsp, &ssp, &intensity,
- &bg, &max, &sigma, 0, 1, 1);
+ &bg, &max, &sigma, 1, 1);
mean_intensity += intensity;
mean_bg += bg;
@@ -123,7 +123,7 @@ static void fourth_integration_check(struct image *image, int n_trials,
}
}
integrate_peak(image, 64, 64, &fsp, &ssp, &intensity,
- &bg, &max, &sigma, 0, 1, 1);
+ &bg, &max, &sigma, 1, 1);
mean_intensity += intensity;
mean_bg += bg;
@@ -183,7 +183,7 @@ static void fifth_integration_check(struct image *image, int n_trials,
}
}
integrate_peak(image, 64, 64, &fsp, &ssp, &intensity,
- &bg, &max, &sigma, 0, 1, 0);
+ &bg, &max, &sigma, 1, 0);
mean_intensity += intensity;
mean_bg += bg;
@@ -245,7 +245,7 @@ static void sixth_integration_check(struct image *image, int n_trials,
}
}
integrate_peak(image, 64, 64, &fsp, &ssp, &intensity,
- &bg, &max, &sigma, 0, 1, 0);
+ &bg, &max, &sigma, 1, 0);
mean_intensity += intensity;
mean_bg += bg;
@@ -327,7 +327,7 @@ int main(int argc, char *argv[])
/* First check: no intensity -> zero intensity and bg */
integrate_peak(&image, 64, 64, &fsp, &ssp, &intensity,
- &bg, &max, &sigma, 0, 1, 1);
+ &bg, &max, &sigma, 1, 1);
STATUS(" First check: intensity = %.2f, bg = %.2f, max = %.2f,"
" sigma = %.2f\n", intensity, bg, max, sigma);
if ( intensity != 0.0 ) {
@@ -347,7 +347,7 @@ int main(int argc, char *argv[])
}
}
integrate_peak(&image, 64, 64, &fsp, &ssp, &intensity,
- &bg, &max, &sigma, 0, 1, 1);
+ &bg, &max, &sigma, 1, 1);
STATUS(" Second check: intensity = %.2f, bg = %.2f, max = %.2f,"
" sigma = %.2f\n", intensity, bg, max, sigma);
if ( fabs(intensity - M_PI*9.0*9.0*1000.0) > 4000.0 ) {