The function retrieves the name of the structure of type EXTERNAL from a RS dicom file. Get name of the EXTERNAL structure from RS dicom file. getExternalName ( fileName, displayInfo = False ) Pandas DataFrame with structures and properties. Parameters :įileName ( path) – Path to RS dicom file. The function retrieves some basic information about structures from a RS dicom file. Get some information from the RS structures from RS dicom file. getRSInfo ( fileName, displayInfo = False ) Get some basic information from the RN plan. Get summary of parameters for each field defined in RN plan. OtherFieldsNumber : total number of other fields.ĭictionary with the RN treatment plan parameters. SetupFieldsNumber : total number of setup fields. TreatmentFieldsNumber : total number of treatment fields. TotalFieldsNumber : total number of fields including setup, treatment and other fields. MachineName : name of the treatment machine for which the plan was prepared. StationName : name of the station on which the plan has been prepared. SoftwareVersions : version of the treatment planning system. Manufacturer : manufacturer of the treatment planning system. PatientID : ID of the patient (can be empty for anonymized DICOM). PatientBirthDate : birth date of the patient (can be empty for anonymized DICOM). PatientName : name of the patient (can be empty for anonymized DICOM). PlanTime : time of the plan creation (can be empty for anonymized DICOM). PlanDate : date of the plan creation (can be empty for anonymized DICOM). PlanLabel : name of the treatment plan (can be empty for anonymized DICOM). TargetStructName : name of the structure which the plan was prepared for (dose not work for all RN dicoms). RNFileName : absolute path to the RN file.ĭosePrescribed : dose prescribed to the target (see notes below).įractionNo : number of the fractions planned. Parameters :įileName ( path) – Path to RN dicom file. The function retrieves the machine name defined in the RN dicom file. Get the machine name defined in the RN plan. getRNMachineName ( fileName, displayInfo = False ) False)ĭictionary with the sorted file names. Recursive ( bool, optional) – Search for files recursively. SearchFolder ( path) – The path to be searched. Unknown - files with *.dcm extension that were not recognized. RD - dicom files of 1D/2D/3D RT Dose Storage (for instance dose distribution) RN - dicom files of RT Plan Storage (“RT Plan Storage” or “RT Ion Plan Storage”) RS - dicom files of RT Structure Set Storage 5)ĬT - dicom files of CT Image Storage (“CT Image Storage”, “Enhanced CT Image Storage” or “Legacy Converted Enhanced CT Image Storage”) For MHD files, the compression levelĪbove 10 does not make any effect. False)ĬompressionLevel ( unsigned int, optional) – Determine the compression level. UseCompression ( bool, optional) – Determine if a compression will be used when saving the file. Overwrite ( bool, optional) – Overwrite the file if it exists. SingleFile ( bool, optional) – Determine if the MHD is a single file of two files MHD+RAW. Img ( SimpleITK Image) – Object of a SimpleITK image.įilePath ( path) – Path to file to be saved. It is recommended to use *.mhdĮxtension when saving MetaImage. MetaImage instead of standard two-files MHD+RAW. ![]() The functionĮxtends the functionality of SimpleITK.WriteImage() to write also a single file The function writes a SimpleITK image object to MetaImage file. writeMHD ( img, filePath, singleFile = True, overwrite = True, useCompression = False, compressionLevel = 5, displayInfo = False ) Object or tuple of objects of a SimpleITK image. Parameters :įileNames ( string or array_like) – A path or an iterable (list, tuple, etc.) of paths to MetaImage file.ĭisplayInfo ( bool, optional) – Displays a summary of the function results. The function reads a single MetaImage file or an iterable of MetaImage filesĪnd creates an instance or tuple of instances of a SimpleITK object. Read MetaImage image to SimpleITK image object. readMHD ( fileNames, displayInfo = False ) MetaImage files (*.mhd, *.mha) fredtools. ![]() an obsolate format used by the FRED Monte Carlo engine for saving 3D images (not recommended),ĭicom format (reading only) for 3D/2D images (e.g. MetaImage format in double (*.mhd+*.raw) or single files (only *.mhd), A collection of useful functions for reading and writing images are implemented.
0 Comments
Leave a Reply. |