Skip to content

Auto-detect EEG cap landmarks from ChannelFile#892

Draft
tmedani wants to merge 20 commits intobrainstorm-tools:masterfrom
tmedani:bst_GetEegCapLandmarkLabels
Draft

Auto-detect EEG cap landmarks from ChannelFile#892
tmedani wants to merge 20 commits intobrainstorm-tools:masterfrom
tmedani:bst_GetEegCapLandmarkLabels

Conversation

@tmedani
Copy link
Member

@tmedani tmedani commented Feb 26, 2026

Update GetEegCapLandmarkLabels to accept a channel file/folder and auto-compute landmark electrode names from channel locations (using in_bst_channel and Channel.Loc).

The function now returns top, left, right, front, and posterior electrodes when a ChannelFile is provided, and falls back to the existing hard-coded cap name cases otherwise. (this secon part can be removed)

Update panel_digitize_2024 to call GetEegCapLandmarkLabels with the montage ChannelFile (old Name-based calls are commented out) so tooltips, montage addition, and acquisition checks use the dynamic landmark detection.

Not sure if we need to update the panel_digitize as well.

@rcassani this is related tto our discussion at the meeting.
@chinmaychinara91 you can work on top of this for the next steps

Update GetEegCapLandmarkLabels to accept a channel file/folder and auto-compute landmark electrode names from channel locations (using in_bst_channel and Channel.Loc).

The function now returns top, left, right, front, and posterior electrodes when a ChannelFile is provided, and falls back to the existing hard-coded cap name cases otherwise. (this can be removed)

Update panel_digitize_2024 to call GetEegCapLandmarkLabels with the montage ChannelFile (old Name-based calls are commented out) so tooltips, montage addition, and acquisition checks use the dynamic landmark detection.

Not sure if we need to update the panel_digitize
@rcassani rcassani marked this pull request as draft February 26, 2026 22:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants