From 0567569d2f97a5c4aae54d6f8b27f0eeb7539b86 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 16 Nov 2010 09:56:24 +0100 Subject: indexamajig: Take minimum gradient on command line --- src/peaks.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/peaks.c') diff --git a/src/peaks.c b/src/peaks.c index c75ffd21..2098f6ec 100644 --- a/src/peaks.c +++ b/src/peaks.c @@ -302,7 +302,7 @@ int integrate_peak(struct image *image, int xp, int yp, } -void search_peaks(struct image *image, float threshold) +void search_peaks(struct image *image, float threshold, float min_gradient) { int x, y, width, height; float *data; @@ -364,7 +364,7 @@ void search_peaks(struct image *image, float threshold) /* Calculate overall gradient */ grad = dxs + dys; - if ( grad < 100000 ) continue; + if ( grad < min_gradient ) continue; mask_x = x; mask_y = y; -- cgit v1.2.3