ess.imaging.workflow.YmirImageNormalizationWorkflow#

ess.imaging.workflow.YmirImageNormalizationWorkflow()[source]#

Ymir histogram mode imaging normalization workflow.

Note

time dimension is not time-of-flight but the wall-clock time.

Returns:

Pipeline – Workflow pipeline object for multiple Ymir histogram mode images reduction.

Default Normalization Formula#

\[NormalizedSample_{i} = SampleImageStacks_{i} / BackgroundImage * ScaleFactor\]
\[ScaleFactor = AverageBackgroundPixelCounts / AverageSamplePixelCounts\]
\[ \begin{align}\begin{aligned}SampleImageStacks_{i} = Sample_{i} - mean(DarkCurrent, dim=\text{'time'})\\\text{where } i \text{ is an index of an image.}\\\text{Pixel values less than sample_threshold are masked.}\end{aligned}\end{align} \]
\[ \begin{align}\begin{aligned}BackgroundImage = mean(OpenBeam, dim=\text{'time'}) - mean(DarkCurrent, dim=\text{'time'})\\\text{Pixel values less than background_threshold are masked}\end{aligned}\end{align} \]