aboutsummaryrefslogtreecommitdiff
path: root/src/detector.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2009-11-25 15:17:53 +0100
committerThomas White <taw@physics.org>2009-11-25 15:17:53 +0100
commit44b30bc8ed352f84a0bc0002bd34102893c357be (patch)
tree73e6f391571d9e7a29a18051158527f8036ea2e2 /src/detector.c
parent34760d7e911c50ea7f54ea6eecd8de6984682455 (diff)
Don't wrap around when not blooming
Diffstat (limited to 'src/detector.c')
-rw-r--r--src/detector.c1
1 files changed, 1 insertions, 0 deletions
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; y<image->height; y++ ) {
double val;
val = image->hdr[x + image->width*y];
+ if ( val > SATURATION ) val = SATURATION;
image->data[x + image->width*y] = (uint16_t)val;
}
}