Repository navigation
MRG: Block points behind the head - #4938
Merged
Merged
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4938 +/- ##
==========================================
- Coverage 87.84% 87.83% -0.02%
==========================================
Files 353 353
Lines 62945 62957 +12
Branches 10779 10781 +2
==========================================
+ Hits 55295 55298 +3
- Misses 4909 4916 +7
- Partials 2741 2743 +2 |
agramfort
approved these changes
Feb 14, 2018
Member
Author
|
@christianbrodbeck this is the other |
britta-wstnr
pushed a commit
to britta-wstnr/mne-python
that referenced
this pull request
Jul 5, 2018
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Even when the head is translucent, points behind it should be blocked (i.e., the inside walls of the head should be opaque). This makes it clearer which points are on the near side of the head when doing fits.
For example, look at the
sampledata:Let's scale up the MRI by a factor of 1.1 to make it clear what we're talking about -- on
masterand this PR, this is what you'd see -- all points inside the head are appropriately alpha blended with the head:On the other hand, if scale MRI by a factor of 0.9 to shrink it, we get this on
master, which makes it look like some points might be inside the head, but these are really just on the far side of it:However, these points are actually outside the head -- on the current PR the points on the far side of the head are "removed", making it clear that there are no points inside the head (and note the decreased size of the large purple ball, too, showing just the part that extends inside the head):
Having done a number of surrogate MRI transformations, I think this could really help make it clearer when all the points are outside the head (as they should be), requiring a bit less rotating of the view.
@christianbrodbeck this is also ready for review from my end.