Error when using platipy.dicom.io.nifti_to_rtruct function to convert nii to rtstruct: the Mask must have the number of layers saved (in dimension 3) as an input sequence. Expected 65, result 13
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 256
- Forks
- 75
- PR merge metrics
- No merged PRs in 30d
Description
I have a problem: rt_utils.rtstruct.RTStruct.ROIException: Mask must have the same number of layers (In the 3rd dimension) as input series. expected 65, got 13. I understand that this is because the slices in the NIfTI file need to correspond to the DICOM file.
Now that I only have a mask.nii file and a complete DICOM folder, how do I determine the DICOM file that corresponds to this mask? Is there a tool that can help me with this task?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing platipy.dicom.io.nifti_to_rtruct into rt_utils.rtstruct.RTStruct and reproduce the layer-count exception with mask.nii and the DICOM folder. Determine whether the issue requires a code change or documentation explaining how to identify the matching DICOM series; completion should address the reported mismatch or clearly document the supported workflow.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- data
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100