Utils

Utility functions used in the library.

Data Savers

utils.dataSaver.saveSignalMat(reconObject=None, matPath=None, saveName=None, signalRecon=None)

Save individual signals in mat files

Parameters
  • matPath – Folder path to save images

  • saveName – Saving name for individual file

  • signalRecon – Reconstructed image to save

utils.dataSaver.saveSignalPng(reconObject=None, pngPath=None, saveName=None, signalRecon=None)

Save individual signals in png files

Parameters
  • pngPath – Folder path to save images

  • saveName – Saving name for individual file

  • signalRecon – Reconstructed image to save

utils.dataSaver.saveUsImageMat(reconObject=None, matPath=None, saveName=None, imageRecon=None)

Save images in mat files

Parameters
  • matPath – Folder path to save images

  • saveName – Saving name for individual file

  • imageRecon – Reconstructed image to save

utils.dataSaver.saveUsImagePng(reconObject=None, pngPath=None, saveName=None, imageRecon=None)

Save ultrasound images in png files

Parameters
  • pngPath – Folder path to save images

  • saveName – Saving name for individual file

  • imageRecon – Reconstructed image to save

Delay Calculators

utils.delayCalculator.calculateDelay(fSampling, receptionDelay)

Calculates delay until signal acquisition starts.

Parameters
  • fSampling – Sampling frequency of DAQ

  • receptionDelay – Delay until reception of signals

Returns

Active delay until acquisition