darfix.core.imageOperations.img2img_mean#

darfix.core.imageOperations.img2img_mean(img, mean=None, n=0)[source]#

Update mean from stack of images, given a new image and its index in the stack.

Parameters:
  • img (array_like) – img to add to the mean

  • mean (array_like) – mean img

  • n (int) – index of the last image in the stack

Returns:

Image with new mean