A simple implementation of the total focusing method is provided. It can scale over many cpu cores by replacing the for loop with a parfor loop and it has been generalised to be used with different kinds of complex geometries by modification of the image_domain function.
An example is provided where a 5 Mhz transducer has been used in water scanning for 6 copper wires.
The tfm function has two parameters, the fmc struct containing the FMC dataset and a domain struct containing all precalculated time delays.
The appended image_domain function models the specimen as homogeneous. It calculates all euclidean distances using the Matlab function pdist2 and saves it as matrix Rx. See pdist2 documentation for the structure of the matrix. Rx is then recalculated into the number of sampled samples to each pixel, i.e the indices of the A-scan vectors.
Philip Lindblad (2023). Total focusing method (https://www.mathworks.com/matlabcentral/fileexchange/56971-total-focusing-method), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!