Print

Print


Hi Todd,

I'm not sure if it's endorsed, but you can do this with fslroi, e.g. to add 5 voxels of padding on each side of an image:

fslroi MNI152_T1_2mm MNI152_T1_2mm_padded -5 101 -5 119 -5 101

Cheers,

Paul

On 23 May 2016 at 06:30, Todd Thompson <[log in to unmask]> wrote:
Hi, all. I've inherited some data from a project that (I think) let
SPM choose the bounding box for its MNI normalization, and these files
have dimensions 79x95x68 (with 2mm isotropic voxels), instead of the
91x109x91 dimensions I was expecting. Freeview confirms that these
files are, indeed, normalized to MNI space, but I'm having trouble
getting these files to play nicely with files from FSL that are in the
91x109x91 format. Is there a simple way (preferably a scriptable
command) to expand the bounding box and transform the normalized files
into the standard MNI dimensions?

Thanks much, and apologies to those who read both the SPM and the FSL
mailing lists for the cross-post!

Todd