Abstract. This paper presents research into a method of processing thermal images aimed at detecting and characterizing material defects, or non-uniformities, of the internal structure of materials. Active thermography was chosen as the NDT method. Hidden defects were revealed by analysing the temperature field of the tested material's front surface which was externally excited with heating lamps. Background removal and image segmentation were applied to the last thermogram in the sequence recorded at the end of the heating phase. The paper focuses on the quality of determining lateral dimensions of subsurface flaws in a polymethylmethacrylate slab with bottom holes drilled to imitate flaws. The following accuracy-affecting factors were taken into account: defect depth, emissivity of the inspected surface as an input, user-set parameter for the IR camera, type of filtering used to eliminate the effect of non-uniformity when heating the object surface with an external source, and global and local thresholding as a segmentation method used for defect detection and sizing.