Skip to content

This is for the creation of a Dicom_RT structure using a template RT structure, the dicom images, and a mask

Notifications You must be signed in to change notification settings

brianmanderson/Create_RT_From_Dicom_and_Mask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

If you find this code useful, please provide a reference to my github page for others www.github.com/brianmanderson , thank you!

Create_RT_From_Dicom_and_Mask

This is for the creation of a Dicom_RT structure using a template RT structure, the dicom images, and a mask

Conversion of dicom images + given annotations into an RT structure

Example:

from Create_RT_From_Dicom_and_mask import main

image_path = 'C:\users\brianmanderson\Patient_1\CT1\'

Contour_Names = ['Liver']
annotations = numpy_array_predictions

# annotations should have the shape of [# images, 512, 512, #classes + 1]
# annotations[...,0] is the background

out_path = 'C:\users\brianmanderson\Patient_1\Output\'
main(image_path=image_path,annotations=annotations,Contour_Names=Contour_Names,out_path=out_path)

About

This is for the creation of a Dicom_RT structure using a template RT structure, the dicom images, and a mask

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages