apply_gain_ref#

summary#


Apply a gain reference, and optionally a dark reference, to a set of images.

This program also can apply other statistical preprocessing, including:

  • removing outliers (based on a Gaussian distribution)

  • normalizing the image (by subtracting the mean and dividing by the standard deviation)

Finally, the pixel size (sampling rate) of the image may be changed by resizing. Here the, resizing is carried out in Fourier space, such that the new pixel size is given by:

new_pixel_size = old_pixel_size * (old_size / new_size)

cli options#


none

interactive options#


input_filename

  • Filename of input image

output_filename

  • Filename of output image

input_gain_filename

  • Filename of gain reference

also_use_dark

  • Also do dark correction? If yes, you can provide a dark image to be subtracted:

should_resample

  • Resample the output? If yes, you can resample the output to a different size

should_remove_outliers

  • Remove outlier pixels? If yes, outlier pixels will be removed AFTER gain correction, but prior to resampling

zero_float_and_normalize

  • After outlier pixels have been removed, zero-float and normalize images