Many workpieces produced in large numbers with a large variety of sizes and geometries, e.g. castings and forgings, have to be 100% inspected. In addition to geometric tolerances, material defects, e.g. surface cracks, also have to be detected. We present a fully automated nondestructive testing technique for both types of defects. The workpiece is subject to continuous motion, and during this motion two measurements are performed. In the first step, after applying a short inductive heating, a thermographic measurement is carried out. An infrared camera records the surface temperature of the workpiece enabling the localization of material defects and surface cracks. In the second step, a light sectioning measurement is performed to measure the three-dimensional geometry of the piece. With the help of feature-based registration the data from the two different sources are fused and evaluated together. The advantage of this technique is that a more reliable decision can be made about the nature of the failures and their possible causes. The same registration technique also can be used for the comparison of different pieces and therefore to localize different failure types, via comparison with a "golden," defect-free piece. The registration technique can be applied to any part that has unique geometric features, around which moments can be computed. Consequently, the inspection technique can be applied to many different parts. The efficacy of the method is demonstrated with measurements on three parts having different geometries.