aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-01-08 16:46:16 +0100
committerThomas White <taw@physics.org>2010-01-08 16:46:16 +0100
commit607fbeb1a1b14d0130a071dd445654dbecc51bd7 (patch)
tree25dd4b0d210afa8249fc4c9b94bd31b1475eed99
parent9d09550d6ce5279ca5f68a8a4dc5bd96758d5852 (diff)
Overall threshold, increase gradient sensitivity
-rw-r--r--src/dirax.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/dirax.c b/src/dirax.c
index 6e38d76f..fff93c8a 100644
--- a/src/dirax.c
+++ b/src/dirax.c
@@ -401,6 +401,8 @@ static void search_peaks(struct image *image)
double max;
unsigned int did_something = 1;
+ if ( data[x+width*y] < 800 ) continue;
+
/* Get gradients */
dx1 = data[x+width*y] - data[(x+1)+width*y];
dx2 = data[(x-1)+width*y] - data[x+width*y];
@@ -414,7 +416,7 @@ static void search_peaks(struct image *image)
/* Calculate overall gradient */
grad = dxs + dys;
- if ( grad < 2000000 ) continue;
+ if ( grad < 200000 ) continue;
mask_x = x;
mask_y = y;