-
Notifications
You must be signed in to change notification settings - Fork 56
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
File type for ML masks #83
Comments
@MattAWard As long as you can convert the NIfTI file into a numpy array, then you can incorporate that using import nibabel as nib
nii = nib.load('path/to/.nii.gz')
arr = nii.get_fdata() |
Hi! How do you exactly convert a NifTI file in numpy array into a RTStruct? It's unclear :/ |
Thanks @sunyu0410 and that bit isn't too bad @danihinjos you just do
I have a loop in my Python code that adds ROIs recursively then saves the rtstruct |
What file type/ format are the masks expected to be in to create the RTStruct files? We're currently trialling a ML auto segmentation solution which outputs anatomical models as separate nii.gz (zipped nifti) files. Do you know if files of this type can be converted into the required format for them to be packaged into an RTStruct file? Thanks.
The text was updated successfully, but these errors were encountered: