an class="comment">% normalised log compression</span>
compression_ratio = 3;
scan_lines_fund = logCompression(scan_lines_fund, compression_ratio, true);
scan_lines_harm = logCompression(scan_lines_harm, compression_ratio, true);
</pre>

<p></p>
<p><b>6. Scan Conversion</b></p>
<p>Finally, the processed scan lines are spatially remapped to give an image resolution suitable for display. In this example, the generated image is upsampled by a factor of 2 using <code><a href="matlab: doc interp2">interp2</a></c