toor.ImageReader.Interfile package#

Submodules#

toor.ImageReader.Interfile.general_data module#

class toor.ImageReader.Interfile.general_data.GeneralData[source]#

Bases: object

property dataDescription#

Get the data description.

property imagingModality#

Get the imaging modality.

setDataDescription(dataDescription)[source]#

Set the data description.

Return type:

None

setImagingModality(imagingModality)[source]#

Set the imaging modality.

Return type:

None

toor.ImageReader.Interfile.interfile_writer module#

class toor.ImageReader.Interfile.interfile_writer.InterfileWriter(file_name, data)[source]#

Bases: object

property header#
saveHeaderFile()[source]#

Save the header file in the same directory as the data file. .. rubric:: Example

!INTERFILE := name of data file := teste.v

!GENERAL DATA := data description := CT scan of thorax imaging modality := CT

!GENERAL ACQUISITION PARAMETERS := patient name := John Doe patient ID := 123456 patient sex := M patient birth date := 19700101 study ID := CT teste acquisition date := 20250515 acquisition time := 093015 operator name := Dr. Smith institution name := Example Medical Center

!IMAGE DATA DESCRIPTION := number of dimensions := 3 matrix size [1] := 71 matrix size [2] := 71 matrix size [3] := 73 scaling factor (mm/pixel) [1] := 0.5 scaling factor (mm/pixel) [2] := 0.5 scaling factor (mm/pixel) [3] := 0.5 !number format := float !number of bytes per pixel := 4 imagedata byte order := LITTLEENDIAN number of time frames := 1

!DATA ACQUISITION PARAMETERS := energy window lower level (keV) := 80 energy window upper level (keV) := 140 slice thickness (mm) := 0.5 reconstruction diameter (mm) := 250.0 reconstruction algorithm := LM-MLEM

!END OF INTERFILE :=

Module contents#