aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2010-06-12 20:58:21 -0700
committerThomas White <taw@bitwiz.org.uk>2010-06-12 20:58:21 -0700
commit7e6a03cf07c2a93890be475bbfe894f93b53bf42 (patch)
tree9deccf07a85949ed412aa57901380af4e037d3e9
parent53c2577770cc22178c60c2bad3a0ddefc323484a (diff)
Increase tolerance when culling peaks
-rw-r--r--src/peaks.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/peaks.c b/src/peaks.c
index cfa5e33b..9461dc7e 100644
--- a/src/peaks.c
+++ b/src/peaks.c
@@ -108,7 +108,7 @@ static void cull_peaks(struct image *image)
g = image_get_feature(image->features, j);
if ( g == NULL ) continue;
- if ( f->x == g->x ) ncol++;
+ if ( fabs(f->x - g->x) < 2.0 ) ncol++;
}