[JUNGFRAU] [Correct] Add thresholding for ROI projections
Description
FXE asked us to extend the ROI projection we already integrated with a threshold, zeroing out pixels below that threshold before reducing the ROI to a 1D curve. This gets rid of a lot of remaining noise (see the screenshot below).
How Has This Been Tested?
Ran the notebook interactively on p3279 r275, with ROI definition [3, 405, 450, 0, 1024, -2]
(supplied by Yohei), with no thresholding and with the threshold set to 1.
Relevant Documents (optional)
Average of the projected ROI spectrum over the whole run, with / without thresholding:
Types of changes
- New feature (non-breaking change which adds functionality)
Checklist:
- My code follows the code style of this project.
Reviewers
Merge request reports
Activity
Yohei suggested 2 as a default - apparently they're unlikely to use this for emitted photon energies below 4 keV, so 2 is at most half a photon. If they want a different threshold, it sounds like requesting it at the same time as the ROIs should work.
Yohei also told me that they'll only need one threshold for all ROIs, so that's what I've implemented, to keep it simple.
mentioned in commit 492698d6
changed milestone to %3.11.2
changed milestone to %3.11.3