pyquantus.parse.siemens module

class pyquantus.parse.siemens.AvihStruct

Bases: object

class pyquantus.parse.siemens.Cfh0Struct

Bases: object

class pyquantus.parse.siemens.Csh0Struct

Bases: object

class pyquantus.parse.siemens.Db00Struct

Bases: object

class pyquantus.parse.siemens.FileHeaderStruct

Bases: object

class pyquantus.parse.siemens.FrameStruct

Bases: object

class pyquantus.parse.siemens.Frh0Struct

Bases: object

class pyquantus.parse.siemens.Idx1Struct

Bases: object

class pyquantus.parse.siemens.RfamStruct

Bases: object

class pyquantus.parse.siemens.RfbdStruct

Bases: object

class pyquantus.parse.siemens.RfbmStruct

Bases: object

class pyquantus.parse.siemens.RfcoStruct

Bases: object

class pyquantus.parse.siemens.RfdoStruct

Bases: object

class pyquantus.parse.siemens.RfgiStruct

Bases: object

class pyquantus.parse.siemens.RfmmStruct

Bases: object

class pyquantus.parse.siemens.RfsdStruct

Bases: object

class pyquantus.parse.siemens.RfsiStruct

Bases: object

class pyquantus.parse.siemens.SffmStruct

Bases: object

class pyquantus.parse.siemens.StrfStruct

Bases: object

class pyquantus.parse.siemens.StrhStruct

Bases: object

class pyquantus.parse.siemens.StriStruct

Bases: object

class pyquantus.parse.siemens.TimestampStruct

Bases: object

pyquantus.parse.siemens.extractFrameData(file_obj, FileHeader, frameNum)
pyquantus.parse.siemens.findStartSubstring(shortString, longString)
pyquantus.parse.siemens.getData(imgPath: str, phantomPath: str)

Get the image and phantom data.

Parameters:
  • imgPath (str) – The file path of the Siemens RF data.

  • phantomPath (str) – The file path of the Siemens RF phantom data.

Returns:

Image info, phantom info, image data, and phantom data.

Return type:

Tuple

pyquantus.parse.siemens.getFourCCByteLocation(fileAsChars, fourCC)
pyquantus.parse.siemens.getStartOffset(file_obj, fileAsChars)
pyquantus.parse.siemens.idxRelativeRead(fourCC, file_obj, frameNum, idx1)
pyquantus.parse.siemens.readFileImg(info: InfoStruct, focus: int, imgPath: str) Tuple[DataOutputStruct, InfoStruct]

Read Siemens RF data and parse it.

Parameters:
  • info (InfoStruct) – Siemens RF file metadata

  • focus (int) – focus mode of the data

  • imgPath (str) – The file path of the Siemens RF data.

Returns:

Image data and image metadata.

Return type:

Tuple

pyquantus.parse.siemens.readFileInfo(filepath)

Read values for Siemens RF file metadata.

pyquantus.parse.siemens.readHeader(filepath)
pyquantus.parse.siemens.readHeader_00db(file_obj, fileAsChars)
pyquantus.parse.siemens.readHeader_avih(file_obj, fileAsChars)
pyquantus.parse.siemens.readHeader_cfh0(file_obj, fileAsChars)
pyquantus.parse.siemens.readHeader_csh0(file_obj, fileAsChars)
pyquantus.parse.siemens.readHeader_frh0(file_obj, frameNum, idx1)
pyquantus.parse.siemens.readHeader_idx1(file_obj, numFramesAcquired)
pyquantus.parse.siemens.readHeader_rfam(file_obj, fileAsChars)
pyquantus.parse.siemens.readHeader_rfbd(file_obj, fileAsChars)
pyquantus.parse.siemens.readHeader_rfbm(file_obj, fileAsChars)
pyquantus.parse.siemens.readHeader_rfco(file_obj, fileAsChars)
pyquantus.parse.siemens.readHeader_rfdo(file_obj, fileAsChars)
pyquantus.parse.siemens.readHeader_rfgi(file_obj, fileAsChars)
pyquantus.parse.siemens.readHeader_rfmm(file_obj, fileAsChars)
pyquantus.parse.siemens.readHeader_rfsd(file_obj, fileAsChars, fourCC)
pyquantus.parse.siemens.readHeader_rfsi(file_obj, fileAsChars)
pyquantus.parse.siemens.readHeader_sffm(file_obj, fileAsChars)
pyquantus.parse.siemens.readHeader_strf(file_obj, fileAsChars)
pyquantus.parse.siemens.readHeader_strh(file_obj, fileAsChars)
pyquantus.parse.siemens.readHeader_stri(file_obj, fileAsChars)
pyquantus.parse.siemens.siemensRfParser(imgPath: str, phantomPath: str) Tuple[DataOutputStruct, InfoStruct, DataOutputStruct, InfoStruct]

Parse Siemens RF data. Entry-point of entire parser.

Parameters:
  • imgPath (str) – The file path of the Siemens RF data.

  • phantomPath (str) – The file path of the Siemens RF phantom data.

Returns:

Image data, image info, phantom data, and phantom info.

Return type:

Tuple

pyquantus.parse.siemens.splitData(imgData, focus)

Split the data into two channels based on the focus mode.

pyquantus.parse.siemens.tmpRead(fourCC, file_obj, fileAsChars)