[MINC-users] mincresample changes voxel values

Jason Lerch jason at bic.mni.mcgill.ca
Wed Jul 26 13:04:06 EDT 2006


Quick word of caution: are you reading these values using Display or 
register? They do their own internal conversion - to make sure this 
problem is really a problem, try binarizing a label (use mincmath 
-const2 35.5 36.5 -seg labels.mnc one-label.mnc) and then loading it in 
some viewing program.

Hope this helps - if not, see if the command resample_labels gives you 
more satisfaction.

Jason

Paul GRAVEL wrote:

>Dear All,
>
>I am combining manually_modified_labels using Display:
>
>Display mri_stx_nuc.mnc -label label1.mnc -label label2.mnc ...
>
>(All the label files are in the icbm_template_2.00mm.mnc
>format/dimensions/origin.)
>
>Then when I save the combined labels in Display, it does put the labels in
>a different format than the icbm; which I guess is expected.
>
>But when I use mincresample on the combined labels to bring them back to
>the icbm_template_2.00mm.mnc format, some of the original label numbers
>are changed, e.g. Original right_hippocampus_voxels=36, but resampled
>right_hippocampus will have some voxels=36 and some voxels=37.
>My question is why is that, and/or is there a work-around ?
>
>I did use:
>mincresample combined_labels_Display_format.mnc combined_labels_icbm_2mm.mnc -like /data/avgbrain/avgbrain1/brain/images/icbm_template_2.00mm.mnc
>OR
>mincresample -nearest_neighbour combined_labels_Display_format.mnc combined_labels_icbm_2mm.mnc -like /data/avgbrain/avgbrain1/brain/images/icbm_template_2.00mm.mnc
>
>But same outcome...
>
>Thanks in advance.
>
>Best Regards,
>
>Paul
>
>
>
>
>
>_______________________________________________
>MINC-users at bic.mni.mcgill.ca
>http://www.bic.mni.mcgill.ca/mailman/listinfo/minc-users
>  
>



More information about the MINC-users mailing list