Skip to content

Curated head shape for FSAverage - #14462

Open
christianbrodbeck wants to merge 2 commits into
mne-tools:mainfrom
christianbrodbeck:fsaverage
Open

christianbrodbeck wants to merge 2 commits into
mne-tools:mainfrom
christianbrodbeck:fsaverage

Conversation

@christianbrodbeck

Copy link
Copy Markdown
Member

What does this implement/fix?

MNE-Python ships a curated head shape for FSAverage that I used to use for coregistration (left-most picture). With the fetch_fsaverage function this head shape is not used anymore, and the result of watershed is used instead (middle). Was this change intentional? If not, this PR restores the old behavior by copying the curated head shape from mne-python in fetch_fsaverage, and using it in the coregistration GUI.

heads

Both the coregistration GUI and plot_alignment looked for outer_skin.surf
before the subject's own -head.fif, so a curated head surface (such as the
fsaverage head packaged with MNE) was never used when a watershed outer
skin was also present.
Both fsaverage zip files ship the watershed outer skin as
bem/fsaverage-head.fif, so the smoother head surface packaged with MNE
(previously only reachable through create_default_subject, which needs a
FreeSurfer install) was never used. This modification copies it over the extracted file when
fsaverage-head.fif was missing before the downloads; existing files are
left alone, consistent with the no-overwrite rule.

This branch has not been deployed

No deployments
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.

1 participant