Skip to content
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

Merged
merged 5 commits into from Sep 17, 2019

Conversation

frheault
Copy link
Member

New scripts to remove streamlines that are invalid in vox space

Copy link
Contributor

@GuillaumeTh GuillaumeTh left a 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

scripts/scil_remove_invalid_streamlines.py Outdated Show resolved Hide resolved
@arnaudbore
Copy link
Contributor

@frheault can you merge the master and do some fixing before I review ? I already noticed the assert_outputs_exists issue

@arnaudbore arnaudbore merged commit e10d887 into scilus:master Sep 17, 2019
Copy link
Member

@jchoude jchoude left a 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.
Copy link
Member

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',
Copy link
Member

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.

@frheault frheault deleted the remove_invalid_streamlines branch March 24, 2020 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants