mdreg.skimage.coreg_series#

mdreg.skimage.coreg_series(moving: ndarray, fixed: ndarray, parallel=False, progress_bar=False, **kwargs)[source]#

Coregister two series of 2D images or 3D volumes.

Parameters:
  • moving (numpy.ndarray) – The moving image or volume, with dimensions (x,y,t) or (x,y,z,t).

  • fixed (numpy.ndarray) – The fixed target image or volume, in the same dimensions as the moving image.

  • parallel (bool) – Set to True to parallelize the computations. Defaults to False.

  • progress_bar (bool) – Show a progress bar during the computation. This keyword is ignored if parallel = True. Defaults to False.

  • kwargs (dict) – Any keyword argument accepted by skimage.optical_flow_tvl1.

Returns:

  • coregistered (numpy.ndarray) – Coregistered series with the same dimensions as the moving image.

  • deformation (numpy.ndarray) – The deformation field with the same dimensions as moving, and one additional dimension for the components of the vector field. If moving has dimensions (x,y,t) and (x,y,z,t), then the deformation field will have dimensions (x,y,2,t) and (x,y,z,3,t), respectively.