Those commands look right

On 2/23/2021 9:27 AM, Roman Fleysher wrote:

        External Email - Use Caution        

Dear FreeSurfers,

I am working with version 6, starting point is T1W image in NIFTI format. I typically transform segmentations back to native space in NIFTI format to be able to use other software (FSL and such). I noticed that segmentation is shifted by 1 pixel in one axis (y-axis). Mapping of segmentation is a two step process based on description in:

MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be http://surfer.nmr.mgh.harvard.edu/fswiki/FsAnat-to-NativeAnat


Specific commands are (schematically) :

# realign to original MGZ

mri_label2vol --seg inputSegmentationInMGZ --temp mri/orig/001.mgz --o outputSegmentationInOrigMGZ --regheader inputSegmentationInMGZ


# convert to NIFTI (*.nii.gz)

mri_convert --in_type mgz --out_type nii outputSegmentationInOrigMGZ outputSegmentationInOrigNIFTI.nii.gz

Are these steps correct? I can shift NIFTI by one pixel using fslroi, but I want to be sure nothing else is happening and that this shift is the correct work around.

Thank you,

Roman



_______________________________________________
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer