qurit / rt-utils

A minimal Python library to facilitate the creation and manipulation of DICOM RTStructs.
MIT License
181 stars 56 forks source link

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 #109

Open 1413194910 opened 4 months ago

1413194910 commented 4 months ago

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?