This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pytrip as pt | |
>>> dir(rts) | |
['AccessionNumber', 'ApprovalStatus', 'InstanceCreationDate', 'InstanceCreationTime', 'Manufacturer', 'ManufacturerModelName', | |
'Modality', 'PatientBirthDate', 'PatientID', 'PatientName', 'PatientSex', 'ROIContourSequence', | |
'RTROIObservationsSequence', 'RefdFrameOfReferenceSequence', 'RefdStudySequence', 'ReferencedFrameOfReferenceSequence', | |
'ReferencedStudySequence', 'ReferringPhysicianName', 'SOPClassUID', 'SOPInstanceUID', 'SeriesInstanceUID', 'SeriesNumber', | |
'SoftwareVersions', 'SpecificCharacterSet', 'StationName', 'StructureSetDate', 'StructureSetLabel', 'StructureSetName', | |
'StructureSetROISequence', 'StructureSetTime', 'StudyDate', 'StudyID', 'StudyInstanceUID', 'StudyTime', '__contains__', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pytrip as pt | |
dcmf = "/local/dicom/pinnacle3-9.9-phantom-imrt" | |
dcm = pt.dicomhelper.read_dicom_folder(dcmf) | |
basename = "foobar" | |
c = pt.CtxCube() | |
c.read_dicom(dcm) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import numpy as np | |
def get_token(f): | |
""" | |
returns a tuple with 4 elements: | |
0: payload id | |
1: payload dtype string | |
2: payload number of elements |
NewerOlder