ess.imaging.normalize.cleanse_sample_images#
- ess.imaging.normalize.cleanse_sample_images(sample_images, dark_current)[source]#
Cleanse the sample image stack.
We subtract the averaged dark current image from the sample image stack.
\[ \begin{align}\begin{aligned}CleansedSample_{i} = Sample_{i} - mean(DarkCurrent, dim=\text{'time'})\\\text{where } i \text{ is an index of an image.}\end{aligned}\end{align} \]- Parameters:
sample_images (
io.SampleImageStacksWithLogs
(scipp.DataArray
)) – Sample image stack.dark_current (
normalize.DarkCurrentImage
(scipp.DataArray
)) – Dark current image.
- Return type: