tomwer.core.utils.normalization.flatFieldCorrection#

tomwer.core.utils.normalization.flatFieldCorrection(imgs, dark, flat)#

Simple normalization of a list of images. Normalization is made for X-Ray imaging: (img - dark) / (flat - dark)

Parameters:
  • imgs (dict) – list of imgs to correct. key: index of the image, value: the image path or numpy.ndarray

  • dark (numpy.ndarray) – dark image

  • flat (numpy.ndarray) – flat image

Returns:

list of corrected images