-
Notifications
You must be signed in to change notification settings - Fork 2
ENH: Provide TotalSegmentatorWithContrast as a custom seg option #77
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -92,7 +92,7 @@ scene. | |
|
|
||
| workflow = pm4d.WorkflowConvertImageToUSD( | ||
| input_filenames=["patient_dicom_dir"], | ||
| contrast_enhanced=False, | ||
| segmentation_method=pm4d.SegmentChestTotalSegmentator(), | ||
| output_directory="./results", | ||
| project_name="patient_heart", | ||
| ) | ||
|
Comment on lines
93
to
98
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟠 Major | ⚡ Quick win 🧩 Analysis chain🏁 Script executed: #!/bin/bash
set -euo pipefail
# Locate the tutorial file and relevant workflow/API references.
git ls-files docs/cli_scripts/byod_tutorials.rst
rg -n "WorkflowConvertImageToUSD|usd_project_name|project_name" docs/cli_scripts/byod_tutorials.rst . -g '!**/.git/**'Repository: Project-MONAI/physiomotion4d Length of output: 11356 🏁 Script executed: #!/bin/bash
set -euo pipefail
# Inspect the tutorial sections around the referenced lines.
sed -n '80,155p' docs/cli_scripts/byod_tutorials.rstRepository: Project-MONAI/physiomotion4d Length of output: 2354 🏁 Script executed: #!/bin/bash
set -euo pipefail
# Search tests or docs that define the expected keyword for this workflow.
rg -n "usd_project_name|project_name" . -g '!**/.git/**' -g '!docs/cli_scripts/byod_tutorials.rst'Repository: Project-MONAI/physiomotion4d Length of output: 5156 🏁 Script executed: #!/bin/bash
set -euo pipefail
# If this file is generated from examples elsewhere, inspect nearby docs to compare.
rg -n "WorkflowConvertImageToUSD" docs . -g '!**/.git/**'Repository: Project-MONAI/physiomotion4d Length of output: 7905 Rename
🤖 Prompt for AI Agents |
||
|
|
@@ -139,7 +139,7 @@ selects its default reference frame internally. | |
|
|
||
| workflow = pm4d.WorkflowConvertImageToUSD( | ||
| input_filenames=["phase_000.mha", "phase_001.mha", "phase_002.mha"], | ||
| contrast_enhanced=False, | ||
| segmentation_method=pm4d.SegmentChestTotalSegmentator(), | ||
| output_directory="./results", | ||
| project_name="heart_animated", | ||
| times_per_second=30.0, | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -69,13 +69,17 @@ Poor Segmentation Quality | |
|
|
||
| **Solutions**: | ||
|
|
||
| 1. Check if image is contrast-enhanced: | ||
| 1. Check if image is contrast-enhanced. Use | ||
| :class:`SegmentChestTotalSegmentatorWithContrast` instead of | ||
| :class:`SegmentChestTotalSegmentator` for contrast-enhanced studies: | ||
|
|
||
| .. code-block:: python | ||
|
|
||
| from physiomotion4d import SegmentChestTotalSegmentatorWithContrast | ||
|
|
||
| workflow = WorkflowConvertImageToUSD( | ||
| ..., | ||
| contrast_enhanced=True # or False | ||
| segmentation_method=SegmentChestTotalSegmentatorWithContrast(), | ||
| ) | ||
|
Comment on lines
+72
to
83
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win Add the missing workflow import.
🤖 Prompt for AI Agents |
||
|
|
||
| 2. Preprocess intensity, spacing, and field of view before invoking the workflow. | ||
|
|
||
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.
🎯 Functional Correctness | 🟠 Major | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
Repository: Project-MONAI/physiomotion4d
Length of output: 14494
🏁 Script executed:
Repository: Project-MONAI/physiomotion4d
Length of output: 11051
Rename
project_nametousd_project_namein this example.WorkflowConvertImageToUSDtakesusd_project_name, so this snippet doesn’t match the constructor as written.🤖 Prompt for AI Agents