aboutsummaryrefslogtreecommitdiff
path: root/src/post-refinement.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-12-03 17:42:29 +0100
committerThomas White <taw@physics.org>2012-02-22 15:27:07 +0100
commit9c54c3d3f8824f5817c716eba5990c46489f9df1 (patch)
treecc0a731f45a7bbe9c2871172bbac0e2e53a2ae43 /src/post-refinement.c
parent38f4ee0f9b07cf53954d7f5d3061c0ab9ef3444c (diff)
Fix integrate_peak() problems which caused incorrect peak positions
Diffstat (limited to 'src/post-refinement.c')
-rw-r--r--src/post-refinement.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/post-refinement.c b/src/post-refinement.c
index a9382773..d835a2ff 100644
--- a/src/post-refinement.c
+++ b/src/post-refinement.c
@@ -245,7 +245,8 @@ double mean_partial_dev(struct image *image, struct cpeak *spots, int n,
* pattern? */
/* FIXME: Coordinates aren't whole numbers */
if ( integrate_peak(image, spots[h].x, spots[h].y,
- &xc, &yc, &I_partial, NULL, NULL, 1, 1) ) {
+ &xc, &yc, &I_partial, NULL, NULL,
+ 1, 1, 0) ) {
continue;
}
@@ -316,7 +317,8 @@ double pr_iterate(struct image *image, double *i_full, const char *sym,
* pattern? */
/* FIXME: Coordinates aren't whole numbers */
if ( integrate_peak(image, spots[h].x, spots[h].y,
- &xc, &yc, &I_partial, NULL, NULL, 1, 1) ) {
+ &xc, &yc, &I_partial, NULL, NULL,
+ 1, 1, 0) ) {
continue;
}