Two computer methods for matching digital line drawings have been tested for automatic on-line verification of the radiation field shape during radiotherapy. This work is part of a research program aiming at automated inspection of on-line acquired digital portal images. Both methods, moment normalization and point distance minimization, compare the field edge detected in the portal image with the intended field edge and the beam shaping devices marked in the simulator image. Tests showed that the methods should be used together. First, shape deviations in the detected field edge are classified quickly, in less than a second (25 MHz 386 + 387 PC), as large (e.g., missing blocks) or small (e.g., shifts of a few mm) by moment normalization. Then the portal image is mapped to the simulator image by field edge alignment with a translation and magnification obtained from moment normalization and a rotation from point distance minimization. The mapped portal image and the simulator image juxtaposed on a monitor screen for visual inspection. Finally, the small field shape deviations are detected by an analysis of the relationship between the radiation field shape and the positioning of field shaping devices using point distance minimization.