set_time_delay_centers()
Description: Determine the time delays required to focus a transducer array at a given point. Time delays calculated with set_time_delay_centers may fall between temporal samples unless the sampling frequency is provided, in which case the delays are shifted to fit the temporal grid (digitized) rather than being allowed to fall between temporal samples.
Usage
transducer = set_time_delay_centers(transducer, x, y, z, medium, center, fs);
Arguments
- transducer A transducer array, e.g. one created by create_circ_csa.
- x The x coordinate of the focus.
- y The y coordinate of the focus.
- z The z coordinate of the focus.
- medium A medium struct.
- center zero delay position.
- fs Optional sampling frequency in Hz. If provided, digitized time delays (i.e. time delays shifted to align with the sampling frequency) will be used. \item{linear_array - Whether to treat the array as a linear array, i.e. all array elements with the same x-coordinate will be focused together and have the same delay.}
- delays The time delays to assign to the array elements such that the time delay of transducer(n) = delays(n).
Output Parameters
- transducer The input transducer array with adjusted time delays.
Notes
This function alters the transducer struct so the output transducer
should be the same as the input transducer. If the sampling frequency is provided, the time delays will be digitized, i.e. they will be shifted to occur exactly on the time samples rather than between them.