aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/peaks.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/peaks.c b/src/peaks.c
index 9461dc7e..21c1f2f3 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 ( fabs(f->x - g->x) < 2.0 ) ncol++;
+ if ( fabs(f->y - g->y) < 2.0 ) ncol++;
}
@@ -121,7 +121,7 @@ static void cull_peaks(struct image *image)
struct imagefeature *g;
g = image_get_feature(image->features, j);
if ( g == NULL ) continue;
- if ( f->x == g->x ) {
+ if ( fabs(f->y - g->y) < 2.0 ) {
image_remove_feature(image->features, j);
nelim++;
}