aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-06-12 22:21:17 -0700
committerThomas White <taw@physics.org>2010-06-12 22:21:17 -0700
commitd57b55ca6d390656898439350c404a0447391eb9 (patch)
tree7b38626da0d93fc7eb006c3f98d45283c223d468 /src
parent7e6a03cf07c2a93890be475bbfe894f93b53bf42 (diff)
Rotate detector
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++;
}