Skip to content

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

@SuperLuckyKris

Description

@SuperLuckyKris

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions