From 41b4c6f37e35f6a90148c6c592910b79eb91fb16 Mon Sep 17 00:00:00 2001 From: Eric Bezzam Date: Thu, 12 Sep 2024 08:55:19 +0000 Subject: [PATCH] Clamp after background subtraction. --- lensless/recon/recon.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lensless/recon/recon.py b/lensless/recon/recon.py index e09f7c93..9ef77d89 100644 --- a/lensless/recon/recon.py +++ b/lensless/recon/recon.py @@ -552,6 +552,7 @@ def apply( if background is not None: self._data = self._data - background + self._data[self._data < 0] = 0 if reset: self.reset()