From 44b30bc8ed352f84a0bc0002bd34102893c357be Mon Sep 17 00:00:00 2001 From: Thomas White Date: Wed, 25 Nov 2009 15:17:53 +0100 Subject: Don't wrap around when not blooming --- src/detector.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/detector.c b/src/detector.c index 1816b981..778628ba 100644 --- a/src/detector.c +++ b/src/detector.c @@ -186,6 +186,7 @@ void record_image(struct image *image) for ( y=0; yheight; y++ ) { double val; val = image->hdr[x + image->width*y]; + if ( val > SATURATION ) val = SATURATION; image->data[x + image->width*y] = (uint16_t)val; } } -- cgit v1.2.3