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

Auto-segment sequences if volume belongs to a Sequence node #56

Merged
merged 1 commit into from
Apr 25, 2024

Conversation

henrykrumb
Copy link
Contributor

This PR addresses issue #53 by applying segmentations to all frames of a volume sequence. The following steps are executed:

  1. If the selected volume belongs to a sequence, the user is prompted if they really want to segment the full sequence.
  2. If the user declined, only the volume at the current frame will be segmented by TotalSegmentator (like it was done before this PR).
  3. If the user accepted, all frames of the sequence will be iteratively segmented. A new SequenceNode will be stored in the SequenceBrowserNode of the input volume, recording the segmentation as a proxy node for every frame.

I tested my changes with the CT Cardio Sequence example on a vanilla Slicer 5.6.1 which confirmed that they work as expected. However, I would be happy for reviews.

@henrykrumb
Copy link
Contributor Author

Quick demo of the auto-segmented CT Cardio Sequence example. I also tested it with the CTP Cardio Sequence example and it worked.

3dslicerheart.mp4

Co-authored-by: Andras Lasso <lasso@queensu.ca>
Copy link
Owner

@lassoan lassoan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, it looked good overall. I've touched it up a bit and will merge now.

@lassoan lassoan merged commit 9f434a5 into lassoan:main Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants