Experimental Physics and
| |||||||||||||||||
|
We see this sort of issue for Eiger area detectors, which encode bad pixels with a value of 2**Nbits - mask, where the mask describes the nature of the bad pixel. If that is what you are seeing, I'm not sure that setting a maximum value (say, 65000 or 4,290,000) is really the best option. Instead, one could consider setting a negative value (say 16 or 1024) and subtracting that from the maximum unsigned value to identify pixels marked as bad. That negative masking value would likely be more independent of changing from 16- to 32-bit images. As a workaround, we typically convert the output type from unsigned to signed, and then a threshold of zero does set bad pixels to zero. That is useful for live viewing (and independent of bit level), even if it lowers the full dynamic range for live display. We typically include this thresholding in the plugin chain for displays. We still have the file-saving plugin save the full unsigned integer data, preserving the bad pixel encoding and dynamic range and allowing masks for bad pixels to be both determined and applied. On Tue, Aug 15, 2023 at 9:38 AM Marco A. Barra Montevechi Filho via Tech-talk <tech-talk at aps.anl.gov> wrote:
| ||||||||||||||||
ANJ, 16 Aug 2023 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing · |