Skip to content

Fix corrupted figures in plot_background_freesurfer_mne #9007

Description

@drammock

Several plots in tutorials/source-modeling/plot_background_freesurfer_mne.py are messed up (inverted, misaligned, or corrupted). See if you can fix them. Check with @larsoner or @GuillaumeFavelier before you start; some of them might be due to 3D viz bugs that aren't fixed yet.

Activity

  1. larsoner commented on Mar 8, 2021

    @larsoner
    Member

    I think this has to do with a change related to whether the camera's focal point is at 0, 0, 0 (new behavior) or center of the bounding box of all objects in the scene (old behavior). @GuillaumeFavelier I think we should make sure that there is some option like focalpoint='bounds' or so (and focalpoint=None should mean "use existing focal point"), and maybe set "bounds" (back) to the default. WDYT?

  2. GuillaumeFavelier commented on Mar 8, 2021

    @GuillaumeFavelier
    Contributor

    this has to do with a change related to whether the camera's focal point is at 0, 0, 0 (new behavior) or center of the bounding box of all objects in the scene (old behavior)

    Agreed, the behaviour of the focal point should be clarified and maybe even tested (to avoid this out of focus brain regression) ?

  3. larsoner commented on Mar 8, 2021

    @larsoner
    Member

    A simple test would be to compute the center of mass based on non-background-color pixels. Do you want to try @GuillaumeFavelier ?

  4. GuillaumeFavelier commented on Mar 8, 2021

    @GuillaumeFavelier
    Contributor

    bounds are given by VTK's ComputeVisiblePropBounds right?
    EDIT: I suggest we just re-use that to test the new default.

  5. larsoner commented on Mar 8, 2021

    @larsoner
    Member
  6. GuillaumeFavelier commented on Mar 8, 2021

    @GuillaumeFavelier
    Contributor

    I'm on it

  7. added this to the 0.23 milestone on Mar 31, 2021
  8. drammock commented on Apr 15, 2021

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

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions