/REFoCUS

Code for Retrospective Encoding For Conventional Ultrasound Sequences - recover the complete data set from focused (and other) beams

Primary LanguagePythonMIT LicenseMIT

Retrospective Encoding For Conventional Ultrasound Sequences (REFoCUS)

Decode a set of focused transmit ultrasound beams into the "complete data set", indexed by individual transmit elements and receive channels. Algorithms are provided for both "phased" and "walking" aperture sequences.

This decoding has many benefits for image quality:

  • Improved electronic signal-to-noise ratio
  • Synthetic transmit focusing, providing diffraction-limited resolution at all depths
  • Uniform field response from the recovered diverging waves (as opposed to focal gain at a fixed depth)

The recovered complete data set also provides the potential for:

  • Transmit apodization
  • Sound speed estimation
  • Phase aberration correction
  • Spatial coherence calculation
  • Other aperture-domain processing

This code is based on the algorithms proposed in:

Ali, R.; Dahl, J.; Bottenus, N. "Extending Retrospective Encoding For Robust Recovery of the Multistatic Dataset". IEEE Transactions on Ultrasonics, Ferroelectrics, and Frequency Control, vol. 67, no. 5, pp. 943-956, Dec. 2019.

You can reference a static version of this code by its DOI number: DOI

The original (adjoint) REFoCUS algorithm was proposed in:

Bottenus, N. "Recovery of the complete data set from focused transmit beams". IEEE Transactions on Ultrasonics, Ferroelectrics, and Frequency Control, vol. 65, no. 1, pp. 30-38, Jan. 2018.

If you use the code/algorithm for research, please cite the above papers as appropriate. For commercial use, please contact the authors to discuss the related IP.

Sample results

Simulated data

Simulated

Experimental data

Experimental

The code

The REFoCUS algorithm is implemented in both MATLAB and Python. Example code is given to run several variants of the algorithm for comparison. Note that the beamforming and spatial coherence code are not optimized for speed and are just provided for convenience.

Please download the sample data under the releases tab for this repository.

REFoCUS code

MATLAB

Python

Several options for inversion are provided to suit different applications.

  • Adjoint - with or without ramp filter
  • Tikhonov regularization - adjustable regularization
  • Regularized singular value decomposition - adjustable regularization
  • Truncated singular value decomposition - adjustable threshold

Example code

There are three subdirectories in the MATLAB and Python subdirectories. The MATLAB versions are linked below:

  1. FieldIISimulatedExample - Example with simulated (Field II) data
  1. ExperimentalExample
  1. kSpaceSimulations

Sample data

  • DATA_FocTx_20190323_205714.mat - Experimental data using an L12-3v transducer and Verasonics ultrasound scanner. Data file contains the apodization and delay description of the walking aperture, the receive aperture positions, sample time vector, and raw channel data.

  • multistaticDataFieldII.mat - Field II simulated data and parameters for the "complete" or "multistatic" data set, with individual element transmissions.