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:
Return type:

normalize.CleansedSampleImages (scipp.DataArray)