Skip to content

image_resample

Resample image to match the resolution of a reference or to the resolution specified in argument. Needs either one of voxel_size, volume_size, iso_min or reference as parameter/input. Uses linear interpolation by default.

Keywords : resample, nifti, volume, scilpy


Format : tuple val(meta), path(image), path(ref)

TypeDescriptionMandatoryPattern
metamapGroovy Map containing sample information e.g. [ id:'test', single_end:false ]True
imagefileNifti image file to resample toTrue*.{nii,nii.gz}
reffileNifti reference image fileTrue*.{nii,nii.gz}

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

TypeDescriptionMandatoryPattern
metamapGroovy Map containing sample information e.g. [ id:'test', single_end:false ]True
*_resampled.nii.gzfileNifti image file resampledTrue*_resampled.{nii,nii.gz}

Format : path(versions.yml)

TypeDescriptionMandatoryPattern
versions.ymlfileFile containing software versionsTrueversions.yml

DescriptionDOI
scilpyThe Sherbrooke Connectivity Imaging Lab (SCIL) Python dMRI processing toolbox.


Last updated : 2025-10-30