The algorithm makes it possible to simplify the procedure for processing results of the thermal testing aimed at both revealing latent defects and evaluating their transverse dimensions and shape. Applying this algorithm requires certain participation and experience of the thermography operator, as well as preliminary preparation of initial data by using techniques that increase the signal-to-noise ratio. The algorithm includes selection of defective zones on the thermogram of the test object, automated identification of points with extreme signals, and a pixel-by-pixel threshold analysis of the zones adjacent to these points, culminating in the construction of binary defect maps.