-
Notifications
You must be signed in to change notification settings - Fork 1
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
Change labels #55
Merged
Merged
Change labels #55
Changes from 19 commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
253ce5a
Refactor iterative labeling logic init from discs only
yw7 ae4e9ed
Improve label naming for clarity in iterative_label function
yw7 f1182be
Fix labeling logic in _get_superior_output_label()
yw7 c96c9f0
Refactor disc and vertebrae labeling process
yw7 2446f36
Replace labelling schema; introduce 'extract_alternate'
yw7 a0753a4
Fix issue by adding range labels 60-101 for extract_alternate
yw7 610f2b8
Refactor label prioritization and mapping logic
yw7 55aa76f
Improve disc label handling in extract_levels function
yw7 1966341
Fix disc label mapping error in extract_levels
yw7 22ca420
Add label text options for image preview
yw7 3d8a559
Add preview image generation for segmentation steps 1 and 2
yw7 64700dd
Remove redundant spinal cord and canal labels
yw7 23ff7d5
Remove unused 'Vertebrae' label from inference script
yw7 3062368
Improve label mapping for spine segmentation
yw7 149b4c0
Fix typo in region_default_sizes definition
yw7 56ac7c4
Fix indexing error in label mapping
yw7 3eb57a7
Improve variable naming for clarity in iterative_label function
yw7 b4cb2ad
Simplify vertebrae to output labels mapping logic
yw7 7270f83
Handle missing disc labels in vertebrae mapping
yw7 f17dc3b
Refactor label sorting functions to improve code readability and robu…
yw7 9203640
Dynamically retrieve nnUNet parameters from results
yw7 c6faf6a
Refactor label mapping to match labeling algo
yw7 4b3440b
Refine help messaging for localizer segmentation
yw7 4eab269
Add support for C1 vertebra label in extract_levels
yw7 0495017
Merge branch 'localizer-based-labeling' into change-labels
yw7 7b890b2
Revised spine landmark labels for consistency
yw7 dbad232
Simplify axis index array creation
yw7 6cabb1a
Merge branch 'localizer-based-labeling' into change-labels
yw7 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
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.
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.
What are the difference between the two arguments
selected_disc_landmarks
anddisc_landmark_labels
. Can't we combine the two ?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.
disc_landmark_labels
tell the algorithm what input label in the input correspond to each of (C2C3, C7T1, T12L1 and L5S) this argument should be always 4 elements.selected_disc_landmarks
tell the algorithm what labels to look, and in what order in the input in order to initialize the output labels, you can use it to tell the alsorithm to initialize the output labels only from C2C3 and L1S labels and ignore the C7T1, T12L1 landmarks, or tell the algorithm to look first for C2C3 and L1S then for the C7T1, T12L1 if not found.