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.
This adds the option to clip the brain surface at sliceplanes. This enables simultaneous viewing of surface and deeper subcortical data. (Although to make this really useful we might need a way to have different datasets visible on the surface and sliceplanes, perhaps?)
It adds a new submenu,
clip
, undersliceplanes
, with boolean toggles forclip_{x,y,z}
andflip_{x,y,z}
. The clip toggles hide the surface on one side of the sliceplane, and flip toggles switch which side that is. The sliceplanes can be moved and rotated as normal.Here's a small script that you can run to test (it works better if you use a subject where the
brainmask.nii.gz
volume is available unlike the default subject S1; in that case replace'raw'
with'brainmask'
):I've also attached a screenshot of what it looks like with a subject where the masked brain is available.
I haven't tested how this works with vertex data or RGB data or really anything but what you see. It's a start, anyway :)