Skip to content

Code for using ICP to align QuSpin OPM sensors localised using HALO. First, a rough alignment is made manually using a 3D visualisation followed by ICP to fit to the scalp.

Notifications You must be signed in to change notification settings

laurabpaulsen/OPM_coreg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OPM_coreg

This repository provides tools for coregistering optically pumped magnetometer (OPM) from QuSpin with MRI data.

The basic idea is that as the OPM sensors are placed on the scalp, we can use the scalp surface extracted from the MRI to align the sensor locations to the MRI coordinate system - in this way skipping the need for traditional fiducial-based coregistration.

Overview

To account for the offset between the OPM sensor’s sensitive volume and the scalp, the scalp surface is inflated by a fixed distance (default: 9 mm, consisting of a 6 mm sensor-casing offset and 3 mm foam padding).

Usage

  1. Perform an initial manual alignment using the AlignmentViewer. See example script example_scripts/align_coordinate_systems.py for details.
  2. Use the keyboard controls to iteratively align the inflated scalp surface with the OPM sensor locations:
    • Press i to perform iterative closest point (ICP) matching.
    • Adjust the position as needed until satisfactory alignment is achieved.
  3. Press s to save the resulting transformation matrix.
  4. Plot the aligned sensors on the MRI scalp surface to verify the alignment without the inflated scalp. See example script example_scripts/plot_aligned_sensors.py for details.

About

Code for using ICP to align QuSpin OPM sensors localised using HALO. First, a rough alignment is made manually using a 3D visualisation followed by ICP to fit to the scalp.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages