New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove invalid streamlines (out of bbox) #42
Remove invalid streamlines (out of bbox) #42
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a small comments. LGTM
@frheault can you merge the master and do some fixing before I review ? I already noticed the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know this is merged, a few comments for a future PR.
DESCRIPTION = """ | ||
Removal of streamlines that are out of the volume bounding box. In voxel space | ||
no negative coordinate and no above volume dimension coordinate are possible. | ||
Any streamlines that do not respect these two conditions are removed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
streamlines
-> streamline
@@ -23,7 +23,8 @@ def load_tractogram_with_reference(parser, args, filepath, | |||
bbox_check=True): | |||
_, ext = os.path.splitext(filepath) | |||
if ext == '.trk': | |||
sft = load_tractogram(filepath, 'same') | |||
sft = load_tractogram(filepath, 'same', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This function should probably go in scilpy.io.streamlines
.
New scripts to remove streamlines that are invalid in vox space