Skip to content

montage / digmontage / transforms documentation #6605

Open
@jasmainak

Description

@jasmainak

I was trying to understand how all the transforms work with @teonbrooks . I don't have time to write a full-fledged documentation but I'll jot down the main points -- it could form the skeleton of a tutorial or added to an existing one.

  • You have 3 coordinate systems: device, head, and MRI
  • The kinds of points you are considering are: hpi (in device space; also called elp when it's in digitizer head space), lpa, rpa, nasion, digitized head shape points
  • Goal is to get two transforms: head-device and head-mri, the former is stored in info and the latter is the so-called -trans.fif file that is found by coregistration
  • Let's consider the first transform head-device -- it's estimated using HPI coils. You know the HPI location in head space. Then during the recording you emit an RF pulse at 330 Hz (?). This can be filtered and then with dipole fit with a spherical head model, you find the location of these points in device space. Now you have the location in both device and head space, so the dev-head transform can be computed. This is typically done in the acquisition device itself and then read into raw.info['dev_head_transform']
  • Now let's consider the second transform: for this you need the lpa, rpa and nasion. It's digitized during the measurement in head space. These are available in raw.info['dig'] and read in using the digitization functions that @massich is working on. Now, you need to mark it in MRI space manually. Once you have the corresponding points, you can coregister them together. Headshape points can be used to further refine the coregistration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions