Skip to content

Commit

Permalink
Clamp after background subtraction.
Browse files Browse the repository at this point in the history
  • Loading branch information
ebezzam committed Sep 12, 2024
1 parent 7959cf1 commit 41b4c6f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lensless/recon/recon.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 41b4c6f

Please sign in to comment.