Back to the main page.

Bug 3375 - support visualization of realistic head and dewar models for ft_realtime_headlocalizer

Status CLOSED FIXED
Reported 2017-11-17 14:20:00 +0100
Modified 2019-08-10 12:37:11 +0200
Product: FieldTrip
Component: realtime
Version: unspecified
Hardware: PC
Operating System: Mac OS
Importance: P5 normal
Assigned to: Simon
URL:
Tags:
Depends on:
Blocks:
See also:

Simon - 2017-11-17 14:20:36 +0100


Robert Oostenveld - 2017-11-20 08:57:44 +0100

The user of this application should have the possibility to toggle between multiple visualization options. Some are mutually exclusive, some are additive. - show schematic/realistic head - show dewar yes/no - show gradiometer coils yes/no - show mirror view yes/no


Simon - 2017-11-22 16:59:02 +0100

We learned the following: head position details can be stored in 1) maxfilter ascii log file, after correcting for head movements 2) maxfilter head position file (which is the 10-column file you showed yesterday), if you ask maxfilter only to estimate the head position 3) in the fif file that comes out of maxfilter after 1 or 2, but the positions are not stored as continuyous channels (like CTF) but in some as-of-yet unaccessible piece of the file.


Simon - 2017-11-22 17:16:36 +0100

"I propose you write a matrix = read_neuromag_headpos(filename) function, which returns the 10 columns (in the order in which they appear in the file). Very simple, but still useful to have." @Robert I implemented read_neuromag_headpos. I was just wonder which function i should integrate it in? ft_read_data?


Robert Oostenveld - 2018-01-12 12:59:04 +0100

this has been addressed and merged with https://github.com/fieldtrip/fieldtrip/pull/632


Simon - 2018-01-12 14:57:51 +0100

The following code does not result in the expected visualization. This relates to test_bug3375.m and http://bugzilla.fieldtriptoolbox.org/show_bug.cgi?id=3375. It seems that not all data objects are expressed in the same coordinate system. cd(dccnpath('/home/common/matlab/fieldtrip/data/test/bug3375')); cfg = []; cfg.dataset = 'elekta/jn_multimodal_chpi_raw_sss.fif'; cfg.bufferdata = 'first'; cfg.headshape = 'elekta/strio_jn.mat'; ft_realtime_headlocalizer(cfg); @simonhomoelle can you have a look?


Robert Oostenveld - 2019-08-10 12:37:11 +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 on https://github.com/fieldtrip/fieldtrip/issues.