zea.doppler

Doppler functions for processing I/Q ultrasound data.

Functions

color_doppler(data, center_frequency, ...[, ...])

Compute Color Doppler from packet of I/Q Data.

zea.doppler.color_doppler(data, center_frequency, pulse_repetition_frequency, sound_speed, hamming_size=None, lag=1)[source]

Compute Color Doppler from packet of I/Q Data.

Parameters:
  • data (ndarray) – I/Q complex data of shape (n_frames, grid_size_z, grid_size_x). n_frames corresponds to the ensemble length used to compute the Doppler signal.

  • center_frequency (float) – Center frequency of the ultrasound probe in Hz.

  • pulse_repetition_frequency (float) – Pulse repetition frequency in Hz.

  • sound_speed (float) – Speed of sound in the medium in m/s.

  • hamming_size (int or tuple, optional) – Size of the Hamming window to apply for spatial averaging. If None, no window is applied. If an integer, it is applied to both dimensions. If a tuple, it should contain two integers for the row and column dimensions.

  • lag (int, optional) – Lag for the auto-correlation computation. Defaults to 1, meaning Doppler is computed from the current frame and the next frame.

Returns:

Doppler velocity map of shape (grid_size_z, grid_size_x) in

meters/second.

Return type:

doppler_velocities (ndarray)