myimagelib.corrLib.divide_stack

myimagelib.corrLib.divide_stack(img_stack, winsize=[50, 50], step=25)

Divide image stack into several evenly spaced windows of stack. Average the pixel intensity within each window. For example, a 30*30*30 image stack, if we apply a divide_stack, with winsize=[15, 15] and step=15, the resulting divided stack will be (30, 4).

Parameters
  • img_stack – a stack of image, a 3D array, axis0 should be frame number

  • winsize – division scheme, default to [50, 50]

  • step – division scheme, default ot 25

Returns

the result