Back to the main page.

Bug 2662 - mismatch between the coordinate system in the atlas and the coordinate system in the data in ft_volumelookup

Status CLOSED WONTFIX
Reported 2014-07-25 06:47:00 +0200
Modified 2015-01-12 09:21:21 +0100
Product: FieldTrip
Component: plotting
Version: unspecified
Hardware: PC
Operating System: Windows
Importance: P5 normal
Assigned to: Jan-Mathijs Schoffelen
URL:
Tags:
Depends on:
Blocks:
See also:

Tyler - 2014-07-25 06:47:22 +0200

On line 220 in ft_volumelookup it gives the following error: Error using ft_volumelookup (line 220) there is a mismatch between the coordinate system in the atlas and the coordinate system in the data, which cannot be resolved The coordinate system in the atlas is 'mni' and the coordinate system in the data is 'spm'. There doesnt appear to be a way of handling these coordinate systems in the code. The only way to deal with it is to force the coordinate system to be the other's coordinate system because ft_convert_coordsys doesnt change mni to spm or vise versa.


Jan-Mathijs Schoffelen - 2014-07-25 07:27:47 +0200

coordsys = 'spm' and coordsys = 'mni' are equivalent. Please change cfg.inputcoord into 'mmi'. Then it should work.


Tyler - 2014-07-25 08:16:49 +0200

Unforunately that doesnt work, you need to force it be mni by going atlas/mri.coordsys = 'mni'. I couldnt find where I could have cfg.inputcoord = 'mni' to fix the issue. Forcing the coordsys just makes me feel like I am doing something wrong haha