diff options
author | Thomas White <taw@bitwiz.org.uk> | 2010-06-12 20:58:21 -0700 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2010-06-12 20:58:21 -0700 |
commit | 7e6a03cf07c2a93890be475bbfe894f93b53bf42 (patch) | |
tree | 9deccf07a85949ed412aa57901380af4e037d3e9 /src/peaks.c | |
parent | 53c2577770cc22178c60c2bad3a0ddefc323484a (diff) |
Increase tolerance when culling peaks
Diffstat (limited to 'src/peaks.c')
-rw-r--r-- | src/peaks.c | 2 |
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++; } |