[MINC-development] mnc2nii with direction cosines?

Christopher Bailey cjb at pet.auh.dk
Wed Jun 21 05:18:46 EDT 2006


Hi guys,

I'm having some troubles with mnc2nii which seem to be related to
files with direction cosines set (i.e. not identity). The result is a
segfault:

/* snip */
  sto_xyz_matrix = '2 0 0 -96 0 2 0 -132 0 0 3 -72 0 0 0 1'
  sto_ijk matrix = '0.5 0 0 48 0 0.5 0 66 0 0 0.333333 24 0 0 0 1'
  sform_i_orientation = 'Left-to-Right'
  sform_j_orientation = 'Posterior-to-Anterior'
  sform_k_orientation = 'Inferior-to-Superior'
/>
MINC type 3 signed 1
0: 64 0 1
1: 113 1 1
2: 96 2 1
bytes per voxel 2
# of voxels 694272
Segmentation fault

I'm using:

$ mnc2nii -v
program: 1.4
libminc: 1.4
netcdf : 3.5.0 of Jul 29 2003 10:27:35 $

The fix was to do a mincresample -dircos 1 0 0 0 1 0 0 0 1 ...

I'd gladly upload a problem file to anyone interested. Or should I
just upgrade...?

Best,

Chris

-- 
Christopher Bailey <cjb at pet.auh.dk>
PET Centre and
Center of Functionally Integrative Neuroscience
Aarhus University Hospital, Denmark
http://www.cfin.au.dk/


More information about the MINC-development mailing list