pytrip.ctx module¶
The CTX module contains the CtxCube class which is inherited from the Cube class. It is used for handling CT-data, both Voxelplan and Dicom.
-
class
pytrip.ctx.CtxCube(cube=None)[source]¶ Bases:
pytrip.cube.CubeClass for handling CT-data. In TRiP98 these are stored in VOXELPLAN format with the .ctx suffix. This class can also handle Dicom files.
-
create_dicom()[source]¶ Creates a Dicom object from self.
This function can be used to convert a TRiP98 CTX file to Dicom format.
Returns: A Dicom object.
-
data_file_extension= '.ctx'¶
-
header_file_extension= '.hed'¶
-
read_dicom(dcm)[source]¶ Imports CT-images from Dicom object.
Parameters: dcm (Dicom) – a Dicom object
-