From fbb24f228ef9a59db897829d08396872f6435131 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 7 Sep 2010 11:13:09 +0200 Subject: indexamajig: Get peak threshold 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 56a79a05..7630f965 100644 --- a/src/peaks.c +++ b/src/peaks.c @@ -266,7 +266,7 @@ int integrate_peak(struct image *image, int xp, int yp, } -void search_peaks(struct image *image) +void search_peaks(struct image *image, float threshold) { int x, y, width, height; float *data; @@ -305,7 +305,7 @@ void search_peaks(struct image *image) int r; /* Overall threshold */ - if ( data[x+width*y] < 50 ) continue; + if ( data[x+width*y] < threshold ) continue; /* Get gradients */ dx1 = data[x+width*y] - data[(x+1)+width*y]; -- cgit v1.2.3