From d57b55ca6d390656898439350c404a0447391eb9 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Sat, 12 Jun 2010 22:21:17 -0700 Subject: Rotate detector --- src/peaks.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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++; } -- cgit v1.2.3