ne from the sensor data</span>
scan_lines(scan_line_index, :) = transducer.scan_line(sensor_data);
</pre>

<p>After beamforming, the first part of each scan line is also windowed to remove the input signal from the recorded sensor data. This step is required because k-Wave allows the transducer elements to both send and receive at the same time. (This is not physically possible using a standard ultrasound probe.)</p>

<p></p>
<p><b>2. Time Gain Compensation</b></p>
<p>The acoustic waves generated by the ult