aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2011-03-08 15:32:54 +0100
committerThomas White <taw@physics.org>2012-02-22 15:27:18 +0100
commit19a9c178679ba2eb7e457e12968bcd32822ba8d7 (patch)
tree9e4e867727abd5fd0af2f66ff28fee7f6ea67df9
parent6b1ac0ccbf67adb8ae19363d27f4a03f0232eff7 (diff)
Remove is_hot_pixel()
-rw-r--r--src/peaks.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/peaks.c b/src/peaks.c
index f9288c23..729ad6db 100644
--- a/src/peaks.c
+++ b/src/peaks.c
@@ -47,31 +47,6 @@
#define PEAK_WINDOW_SIZE (10)
-static int is_hot_pixel(struct image *image, int x, int y)
-{
- int dx, dy;
- int w, v;
-
- w = image->width;
- v = (1*image->data[x+w*y])/2;
-
- if ( x+1 >= image->width ) return 0;
- if ( x-1 < 0 ) return 0;
- if ( y+1 >= image->height ) return 0;
- if ( y-1 < 0 ) return 0;
-
- /* Must be at least one adjacent bright pixel */
- for ( dx=-1; dx<=+1; dx++ ) {
- for ( dy=-1; dy<=+1; dy++ ) {
- if ( (dx==0) && (dy==0) ) continue;
- if ( image->data[(x+dx)+w*(y+dy)] >= v ) return 0;
- }
- }
-
- return 1;
-}
-
-
static int cull_peaks_in_panel(struct image *image, struct panel *p)
{
int i, n;