From 5a4c6fc6136e66c8a6c248251ba5b5f25c541701 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 21 Jan 2010 18:00:54 +0100 Subject: Adjust peak detection parameters --- src/peaks.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/peaks.c b/src/peaks.c index c6394787..c99cc535 100644 --- a/src/peaks.c +++ b/src/peaks.c @@ -314,7 +314,7 @@ void search_peaks(struct image *image) /* Calculate overall gradient */ grad = dxs + dys; - if ( grad < 2000000 ) continue; + if ( grad < 1000000 ) continue; mask_x = x; mask_y = y; @@ -360,12 +360,11 @@ void search_peaks(struct image *image) /* Isolated hot pixel? */ if ( is_hot_pixel(image, mask_x, mask_y) ) continue; - /* Check for a feature at exactly the - * same coordinates */ + /* Check for a nearby feature */ image_feature_closest(image->features, mask_x, mask_y, &d, &idx); - if ( d > 1.0 ) { + if ( d > 15.0 ) { image_add_feature(image->features, mask_x, mask_y, image, -- cgit v1.2.3