Back to the main page.

Bug 2167 - have ft_sourceplot read surface from other than *.mat file

Status CLOSED FIXED
Reported 2013-05-14 17:14:00 +0200
Modified 2019-08-10 12:02:55 +0200
Product: FieldTrip
Component: plotting
Version: unspecified
Hardware: PC
Operating System: Windows
Importance: P3 normal
Assigned to: Irina
URL:
Tags:
Depends on:
Blocks:
See also:

Irina - 2013-05-14 17:14:52 +0200

at this moment it uses "load", i.e. it assumes that the surface and inflated surface are in a mat file. Better would be to use ft_read_headshape, and thereby support also freesurfer, gifti and other cortical sheet file formats (and of course *.mat as well). around line 935 there is now if ~isempty(cfg.surfinflated) % read the inflated triangulated cortical surface from file tmp = load(cfg.surfinflated, 'bnd'); surf = tmp.bnd; if isfield(surf, 'transform'), % compute the surface vertices in head coordinates surf.pnt = warp_apply(surf.transform, surf.pnt); end end end this needs to be updated. There will be a similar piece for cfg.surf, i.e. the non-inflated surface.


Jan-Mathijs Schoffelen - 2013-05-14 17:34:14 +0200

note that in the cfg to ft_sourceplot you now can also put in a surface description directly, not only the string that refers to the surface file.


Robert Oostenveld - 2013-05-14 21:08:18 +0200

@irina, please do a "svn update" before attempting a "svn commit"


Irina - 2013-06-05 17:01:18 +0200

committed version 8195


Robert Oostenveld - 2019-08-10 12:02:55 +0200

This closes a whole series of bugs that have been resolved (either FIXED/WONTFIX/INVALID) for quite some time. If you disagree, please file a new issue describing the issue on https://github.com/fieldtrip/fieldtrip/issues.