Back to the main page.
Bug 900 - ft_determine_coordsys gives an error when mri.coordsys = 'spm'
Status | CLOSED FIXED |
Reported | 2011-08-26 20:23:00 +0200 |
Modified | 2011-08-31 14:50:49 +0200 |
Product: | FieldTrip |
Component: | core |
Version: | unspecified |
Hardware: | PC |
Operating System: | Linux |
Importance: | P1 normal |
Assigned to: | Jan-Mathijs Schoffelen |
URL: | |
Tags: | |
Depends on: | |
Blocks: | |
See also: |
Lilla Magyari - 2011-08-26 20:23:32 +0200
Hi, I tried to use ft_determine_coordsys to check the points to which I aligned my mri (I try to align it to the AC-PC). Maybe it is not the default use of this function, because in this case the coordinate system is already determined. But I got an error message: >> mri4 mri4 = dim: [181 217 181] anatomy: [181x217x181 double] hdr: [1x1 struct] transform: [4x4 double] unit: 'mm' coordsys: 'spm' transformorig: [4x4 double] pnt: [0x3 double] cfg: [1x1 struct] >> mri5 = ft_determine_coordsys(mri4) The positive x-axis is pointing towards the right The positive y-axis is pointing towards anterior The positive z-axis is pointing towards superior ??? Error using ==> ft_determine_coordsys>xyz2label at 277 unknown coordsys Error in ==> ft_determine_coordsys at 121 [labelx, labely, labelz] = xyz2label(data.coordsys); This does not occur when the data is aligned to the ctf coordinate system: mri2 = dim: [181 217 181] anatomy: [181x217x181 double] hdr: [1x1 struct] transform: [4x4 double] unit: 'mm' coordsys: 'ctf' transformorig: [4x4 double] pnt: [0x3 double] cfg: [1x1 struct] >> mri3 = ft_determine_coordsys(mri2) The positive x-axis is pointing towards anterior The positive y-axis is pointing towards the left The positive z-axis is pointing towards superior Do you want to change the anatomical labels for the axes [y, N]? n Lilla
Jan-Mathijs Schoffelen - 2011-08-29 15:03:20 +0200
I fixed it (I think). @Lilla: could you test this? Thanks.