mdreg.skimage.transform_series#

mdreg.skimage.transform_series(moving, defo, path=None, name='deform')[source]#

Transforms a series of images using a transformation produced by mdreg.skimage.coreg_series().

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

  • defo (numpy.ndarray | zarr.Array) – The deformation field with the same dimensions as moving, and one additional dimension for the components of the vector field.

  • path (str, optional) – Path on disk where to save the results. If no path is provided, the results are not saved to disk. Defaults to None.

  • name (str, optional) – For data that are saved on disk, provide an optional filename. This argument is ignored if no path is provided.

Returns:

numpy.ndarray

Return type:

The transformed image.