mdreg.skimage.coreg#
- mdreg.skimage.coreg(moving: ndarray, fixed: ndarray, **kwargs)[source]#
Coregister two arrays
- Parameters:
moving (numpy.ndarray) – The moving image with dimensions (x,y) or (x,y,z).
fixed (numpy.ndarray) – The fixed target image with the same shape as the moving image.
kwargs (dict) – Any keyword argument accepted by
skimage.optical_flow_tvl1
.
- Returns:
coreg (numpy.ndarray) – Coregistered image in the same shape as the moving image.
deformation (numpy.ndarray) – Deformation field in the same shape as the moving image - but with an additional dimension at the end for the components of the deformation vector.