ess.imaging.normalize#

Module Attributes

AverageBackgroundPixelCounts

mean(background).

AverageSamplePixelCounts

mean(sample).

ScaleFactor

AverageBackgroundPixelCounts / AverageSamplePixelCounts.

OpenBeamImage

Open beam image.

DarkCurrentImage

Dark current image.

CleansedOpenBeamImage

OpenBeam - DarkCrrent

CleansedSampleImages

SampleImageStack - DarkCurrent

SampleImageStacks

Sample image stack ready to be used for normalization.

BackgroundImage

Background image ready to be used for normalization.

NormalizedSampleImages

Normalized sample image stack.

BackgroundPixelThreshold

Threshold of the background pixel values.

SamplePixelThreshold

Threshold of the sample pixel values.

Functions

apply_threshold_to_background_image(...)

Apply the threshold to the background image.

apply_threshold_to_sample_images(samples, ...)

Apply the threshold to the sample image stack.

average_background_pixel_counts(background)

Calculate the average background pixel counts.

average_dark_current_images(dark_current)

Average the dark current image stack.

average_open_beam_images(open_beam)

Average the open beam image stack.

average_sample_pixel_counts(sample_images)

Calculate the average sample pixel counts.

calculate_scale_factor(average_bg, ...)

Calculate the scale factor from average background and sample pixel counts.

cleanse_open_beam_image(open_beam, dark_current)

Calculate the background image stack.

cleanse_sample_images(sample_images, ...)

Cleanse the sample image stack.

normalize_sample_images(*, samples, ...)

Normalize the sample image stack.