Skip to content

registration_synthmorph

Perform registration using SynthMorph from Freesurfer. Outputs transforms in Freesurfer format .lta for affine and .nii.gz (synthmorph also supports .mgz) for deform, both in RAS orientation. Conversion to other formats is done using lta_convert and mri_warp_convert respectively, which support a wide range of conversion formats and orientations, such as ANTs ans FSL. To convert the output of this module, use the registration/convert module successively to it. Note that tests using synthmorph are non-reproductible.

Keywords : Registration, Brain imaging, MRI, Synthetic, AI, CNN


Format : tuple val(meta), path(fixed_image), path(moving_image)

TypeDescriptionMandatoryPattern
metamapGroovy Map containing sample information e.g. [ id:'test', single_end:false ]True
fixed_imagefileNifti volume fixed for registrationTrue*.{nii,nii.gz}
moving_imagefileNifti volume moving for registrationTrue*.{nii,nii.gz}

Format : tuple val(meta), path(*_warped.nii.gz)

TypeDescriptionMandatoryPattern
metamapGroovy Map containing sample information e.g. [ id:'test', single_end:false ]True
*_warped.nii.gzfileWarped imageTrue*_warped.nii.gz

Format : tuple val(meta), path(*_forward{0,1,_standalone}_affine.lta)

TypeDescriptionMandatoryPattern
metamapGroovy Map containing sample information e.g. [ id:'test', single_end:false ]True
*_forward{0,1,_standalone}_affine.ltafileAffine transformation matrix to fixed space.True*_forward{0,1,_standalone}_affine.lta

Format : tuple val(meta), path(*_forward0_deform.nii.gz)

TypeDescriptionMandatoryPattern
metamapGroovy Map containing sample information e.g. [ id:'test', single_end:false ]True
*_forward0_deform.nii.gzfileDeformation field to fixed space.True*_forward0_deform.nii.gz

Format : tuple val(meta), path(*_backward1_deform.nii.gz)

TypeDescriptionMandatoryPattern
metamapGroovy Map containing sample information e.g. [ id:'test', single_end:false ]True
*_backward1_deform.nii.gzfileDeformation field to moving space.True*_backward1_deform.nii.gz

Format : tuple val(meta), path(*_backward{0,_standalone}_affine.lta)

TypeDescriptionMandatoryPattern
metamapGroovy Map containing sample information e.g. [ id:'test', single_end:false ]True
*_backward{0,_standalone}_affine.ltafileAffine transformation matrix to moving space.True*_backward{0,_standalone}_affine.lta

Format : tuple val(meta), val(*_forward[!_]*.{lta,nii.gz})

TypeDescriptionMandatoryPattern
metamapGroovy Map containing sample information e.g. [ id:'test', single_end:false ]True
forward[!].{lta,nii.gz}listTuple, transformation files to warp images to fixed space, in the correct order for REGISTRATION_ANTSAPPLYTRANSFORMS : [ meta, [ forward_warp, forward_affine ] ].True*_forward[!_]*.{lta,nii.gz}

Format : tuple val(meta), val(*_backward[!_]*.{lta,nii.gz})

TypeDescriptionMandatoryPattern
metamapGroovy Map containing sample information e.g. [ id:'test', single_end:false ]True
backward[!].{lta,nii.gz}listTuple, transformation files to warp images to moving space, in the correct order for REGISTRATION_ANTSAPPLYTRANSFORMS : [ meta, [ backward_affine, backward_warp ] ].True*_backward[!_]*.{lta,nii.gz}

Format : tuple val(meta), val(*_backward[!_]*.{lta,nii.gz})

TypeDescriptionMandatoryPattern
metamapGroovy Map containing sample information e.g. [ id:'test', single_end:false ]True
backward[!].{lta,nii.gz}listTuple, transformation files to warp tractograms to fixed space, in the correct order for REGISTRATION_TRANSFORMTRACTOGRAM : [ meta, [ backward_affine, backward_warp ] ].True*_backward[!_]*.{lta,nii.gz}

Format : tuple val(meta), val(*_forward[!_]*.{lta,nii.gz})

TypeDescriptionMandatoryPattern
metamapGroovy Map containing sample information e.g. [ id:'test', single_end:false ]True
forward[!].{lta,nii.gz}listTuple, transformation files to warp tractograms to moving space, in the correct order for REGISTRATION_TRANSFORMTRACTOGRAM : [ meta, [ forward_warp, forward_affine ] ].True*_forward[!_]*.{lta,nii.gz}

Format : path(versions.yml)

TypeDescriptionMandatoryPattern
versions.ymlfileFile containing software versionsTrueversions.yml

TypeDescriptionDefaultChoices
modelslistList of transformation models to apply to the moving image in series.[“affine”, “deform”]- rigid
- affine
- deform
- joint
weightslistList of weights to apply to each model. Must supply one per model on none. Use “none” to specify no weight for a given model. When using the “joint” model, you must add 2 weights in the list for affine and warp.
use_gpubooleanUse GPU to accelerate computations (must enable GPU support).False
regularizationfloatRegularizationto add to deformation steps.0.5
stepsintegerNumber of iteration for the optimisation of deformations.7
extentintegerSize of the deformation grid in voxels.256- 192
- 256
disable_resamplingbooleanUpdate image header instead of performing resampling of the image grid.False

DescriptionDOI
FreesurferOpen source neuroimaging toolkit for processing, analyzing, and visualizing human brain MR images.10.1016/j.neuroimage.2012.01.021
SynthMorphSynthmorph registration method10.1109/TMI.2021.3116879


Last updated : 2025-11-03