brainstorm3 icon indicating copy to clipboard operation
brainstorm3 copied to clipboard

New Digitize panel

Open Moo-Marc opened this issue 2 years ago • 2 comments

This adds a new version of the Digitize panel, in parallel to the current version. Main changes:

  • Added settings:
    • set of fiducials to digitize, allowing e.g. a 4th MEG head coil.
    • Polhemus device configuration commands, e.g. "hemisphere of operation"
    • Distance threshold for warning message
  • Large display of next point to digitize, to be visible away from the desk
  • Added "beep" and more visible error message when repeated measures > 5mm (default distance threshold)
  • New button to add a set of fiducials to be digitized at any moment, e.g. at end to confirm receiver didn't move and points are good
  • Uses serialport instead of serial (no more warnings), but requires R2019 or newer.
  • Help menu linking to Digitize tutorial
  • New menu item to switch versions of the panel: original or 2024. The panel closes and must be reopened after switching.
  • Now always uses anatomical fiducials to convert coordinates to SCS. Original version saved them in system defined by MEG coils when present, and Brainstorm would convert to anatomically defined SCS when importing.
  • "Delete last point" button replaced by "Start over" until all initial fiducials are digitized.

digitize_2024 digitize_2024_warning digitize_2024_settings

The tutorial is not yet updated. This version is now installed in our lab to use for a while before merging. Others may want to test it also. (@tmedani?)

Moo-Marc avatar Feb 14 '24 20:02 Moo-Marc

For Brainstorm "news", we could describe the main advantages as: New Digitize version: can recheck fiducials, supports more fids, customizable device config, improved GUI

Moo-Marc avatar Feb 14 '24 23:02 Moo-Marc

Brainstorm doesn't deal correctly with points saved in SCS. So I'll revert to saving them in coil-based coordinates in the new version. But I'll also try to fix Bst so any "native" coordinates are treated correctly when importing pos files. This will have the added advantage that if we need to manually edit the coordinates of head coils (e.g. they were digitized in wrong order), it will still import correctly.

Moo-Marc avatar Feb 15 '24 17:02 Moo-Marc

This adds a new version of the Digitize panel, in parallel to the current version. Main changes:

The tutorial is not yet updated. This version is now installed in our lab to use for a while before merging. Others may want to test it also. (@tmedani?)

Hey @Moo-Marc Sorry for the very late reply, I saw this PR, and I didn't reply at that time, and then I forgot to follow up.

Our digitizer was down for a few months and we sent it for reparation, it is back for few day, I'll try to plug it in and test it as soon as I can.

our experimental team is now using the 3D Scanner instead [https://neuroimage.usc.edu/brainstorm/Tutorials/TutDigitize3dScanner] Much easier to use and less errors.

I'll check this PR asap, and back with feedback

tmedani avatar Jul 26 '24 02:07 tmedani