This document describes an adaptive ultrasonic imaging technique using the Total Focusing Method (TFM) to image complex components immersed in water. The technique involves two key steps: 1) Using an optimized TFM algorithm to measure the surface geometry and reduce computation time, and 2) Calculating ultrasonic propagation paths through the reconstructed surface using Fermat's principle to generate an image below the surface. Experimental results on components with different geometries demonstrate the method's ability to image features below irregular, convex, and concave surfaces.