pyquantus.parse.terason module

pyquantus.parse.terason.readFileImg(b_data_Zone1: ndarray, b_data_Zone2: ndarray, focalDepthZone0: float, OmniOn: int, Info: InfoStruct) Tuple[DataOutputStruct, InfoStruct]

Reads the RF data and adds to scan metadata.

Parameters:
  • b_data_Zone1 (np.ndarray) – RF data from zone 1.

  • b_data_Zone2 (np.ndarray) – RF data from zone 2.

  • focalDepthZone0 (float) – Focal depth of zone 0.

  • OmniOn (int) – Whether the Omni is on.

  • Info (InfoStruct) – RF Scan Metadata.

Returns:

RF data and metadata.

Return type:

Tuple[DataOutputStruct, InfoStruct]

pyquantus.parse.terason.readFileInfo(path: str) Tuple[InfoStruct, float, ndarray, ndarray]

Reads the metadata and RF data from a Terason .mat file.

Parameters:

path (str) – Path to the .mat file.

Returns:

Metadata, focal depth, and RF data.

Return type:

Tuple[InfoStruct, float, np.ndarray, np.ndarray]

pyquantus.parse.terason.terasonRfParser(filePath: str, phantomPath: str, OmniOn=1) Tuple[DataOutputStruct, InfoStruct, DataOutputStruct, InfoStruct]

Parses Terason RF data and metadata take with two focal zones.

Parameters:
  • filePath (str) – Path to the RF data.

  • phantomPath (str) – Path to the phantom data.

  • OmniOn (int) – Whether the Omni is on.

Returns:

RF data and metadata for image and phantom.

Return type:

Tuple