apply_xfm_fsl#
- petpal.preproc.register.apply_xfm_fsl(input_image_path: str, ref_image_path: str, out_image_path: str, warp_path: str = None, premat_path: str = '', postmat_path: str = '', **kwargs)#
Applies existing transforms in FSL format to an input image, onto a reference image. This is useful for applying the same transform on different images to atlas space, for example.
Important
Requires installation of
FSL, and environment variablesFSLDIRandFSLOUTPUTTYPEset appropriately in the shell.- Parameters:
input_image_path (str) – Path to image on which transform is applied.
ref_image_path (str) – Path to image to which transform is applied.
out_image_path (str) – Path to which the transformed image is saved.
warp_path (str) – Path to FSL warp file.
premat_path (str) – Path to FSL
prematmatrix file.postmat_path (str) – Path to FSL
postmatmatrix file.kwargs (keyword arguments) – Additional arguments passed to
fsl.wrappers.applywarp().