aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}
}