aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-08-10 14:26:07 +0200
committerThomas White <taw@physics.org>2012-02-22 15:26:55 +0100
commite1be058cc4bd3a78e384c6960fe2b38fcba06bbd (patch)
tree4ad7fe11b740b2b786006cabdff984211167f171 /src
parentadc8143af1cb983c0c6064533c462882c9cc37dc (diff)
Update peak detection for new data
- Remove in_streak() - handled by bad regions and preprocessing - Alter threshold
Diffstat (limited to 'src')
-rw-r--r--src/peaks.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/peaks.c b/src/peaks.c
index 27378eef..5f0a8a27 100644
--- a/src/peaks.c
+++ b/src/peaks.c
@@ -49,13 +49,6 @@
#define MAX_PEAKS (2048)
#define INTEGRATION_RADIUS (10)
-static int in_streak(int x, int y)
-{
- if ( (y>512) && (y<600) && (abs(x-489)<15) ) return 1;
- if ( (y>600) && (abs(x-480)<25) ) return 1;
- return 0;
-}
-
static int is_hot_pixel(struct image *image, int x, int y)
{
@@ -312,10 +305,7 @@ void search_peaks(struct image *image)
int r;
/* Overall threshold */
- if ( data[x+width*y] < 800 ) continue;
-
- /* Ignore streak */
- if ( in_streak(x, y) ) continue;
+ if ( data[x+width*y] < 50 ) continue;
/* Get gradients */
dx1 = data[x+width*y] - data[(x+1)+width*y];