Back to the main page.

Bug 2621 - ft_volumesegment ignores/breaks mri.unit

Status CLOSED FIXED
Reported 2014-06-20 17:38:00 +0200
Modified 2016-05-09 08:47:54 +0200
Product: FieldTrip
Component: core
Version: unspecified
Hardware: PC
Operating System: Linux
Importance: P5 normal
Assigned to: Jan-Mathijs Schoffelen
URL:
Tags:
Depends on:
Blocks:
See also:

Luke - 2014-06-20 17:38:21 +0200

Created attachment 640 demonstation script for bug. if I supply an mri to ft_volumesegment, that has a mri.unit of 'cm' the resulting seg object erroneously has 'mm' as its units. i've tested this with the attached script. and I find that both segmetations have the same brain masks and units however the transforms are different.


Robert Oostenveld - 2014-06-23 09:46:59 +0200

Hi Luke, thanks for reporting. I know that SPM (which we use here underneath) assumes/requires the MRI to be in mm, which probably relates to the bug. We'll look at it. Robert


Jan-Mathijs Schoffelen - 2016-02-19 12:50:18 +0100

Sorry it took so long to get back to you. The current version of the code seems to work well, i.e. the units are consistent with the transform fields.


Robert Oostenveld - 2016-02-19 21:33:01 +0100

(In reply to Jan-Mathijs Schoffelen from comment #2) I have recently (~1 month ago) been looking at the units of the input and output of ft_volumesegment (not aware of this bug) and at that moment I confirmed that it was correct.