Skip to content

Scaling Fsaverage #369

Closed
Closed

Description

@christianbrodbeck

I've been working on the option to scale the fsaverage brain to adapt it to the subject's head-shape. Do you think this should go into mne-python eventually? Fitting proceeds by matching the nasion position and then using scipy least squares optimization to minimize the distance of the digitizer points from the mri. I've divided the implementation into the fitting and a traits based interface (see below). I don't really like the traits interface but it has the advantage of only depending on mayavi and not a specific GUI library.

Screen Shot 2013-01-12 at 11 48 10 AM

Activity

  1. agramfort commented on Jan 12, 2013

    @agramfort
    SponsorMember

    glad to see that you found your way with this.

    I would first open a PR so we know it's there or publish this on a gist
    if it can (not too nested in the mne-python code). At least it does not
    get lost.

    we'll keep it around and eventually merge if more people ask about this
    feature.

    nice !

  2. mluessi commented on Jan 12, 2013

    @mluessi
    Contributor

    Nice +1 for a PR.

    I think it would be great to have a fitting function which could also be used without the GUI. This would e.g. be useful for realtime processing.

  3. christianbrodbeck commented on Jan 13, 2013

    @christianbrodbeck
    MemberAuthor

    I added a WIP PR: #379

    @mluessi

    I think it would be great to have a fitting function which could also be used without the GUI. This would e.g. be useful for realtime processing.

    Do you need a scaled MRI for that, or merely the head => mri transform? The new mne.transforms.coreg.MriHeadFitter can be used without mayavi as long as plot() is not called, but depending on the digitizer head shape complexity it's not exactly fast.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions