pyquantus.parse.canon module
- pyquantus.parse.canon.canonIqParser(imgPath: str, refPath: str) Tuple[DataOutputStruct, InfoStruct, DataOutputStruct, InfoStruct]
Parse Canon IQ data. Entry-point of entire parser.
- Parameters:
imgPath (str) – The file path of the Canon IQ data.
refPath (str) – The file path of the Canon IQ phantom data.
- Returns:
Image data, image info, phantom data, and phantom info.
- Return type:
Tuple
- pyquantus.parse.canon.findPreset(filename: str) int
Find the preset of the Canon file (experiment-specific convention).
- Parameters:
filename (str) – The file path of the Canon file.
- Returns:
The number of samples in the Canon file, which corresponds to the preset.
- Return type:
int
- pyquantus.parse.canon.readFileImg(Info: InfoStruct, filePath: str) Tuple[DataOutputStruct, InfoStruct]
Read Canon IQ data and parse it.
- Parameters:
Info (InfoStruct) – Canon IQ file metadata
filePath (str) – The file path of the Canon IQ data.
- Returns:
Image data and image metadata.
- Return type:
Tuple[DataOutputStruct, InfoStruct]
- pyquantus.parse.canon.readFileInfo() InfoStruct
Set default values for Canon IQ file metadata.
- Returns:
The default Canon IQ file metadata.
- Return type:
- pyquantus.parse.canon.readIQ(filename: str) Tuple[ndarray, ndarray, float, int, float]
Read IQ data from a Canon file.
- Parameters:
filename (str) – The file path of the Canon file.
- Returns:
B-mode image, IQ data, digitizing rate, number of samples, and decimation factor.
- Return type:
Tuple