diff options
author | Thomas White <taw@physics.org> | 2010-01-21 18:00:54 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2010-01-21 18:00:54 +0100 |
commit | 5a4c6fc6136e66c8a6c248251ba5b5f25c541701 (patch) | |
tree | b184a38f7c62398fcdbe6ea24fe20f2adf4f7125 /src/peaks.c | |
parent | 6dce1ed57b186dee37795eed14dce46b82bd4d3e (diff) |
Adjust peak detection parameters
Diffstat (limited to 'src/peaks.c')
-rw-r--r-- | src/peaks.c | 7 |
1 files 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, |