Semiconductor manufacturing has a pressing need for a method to accurately evaluate the global shape deformation of a photomask pattern. We thus propose a novel composition technique for a large field panorama image of scanning electron microscopy (SEM). The proposed method optimises the arrangement of segmented imaging regions (SIRs), which are components of a panorama image, on the basis of the design data of the photomask pattern layout. The quantity of the line pattern segment, which is a clue to the connection in an overlapping region between adjoining SIRs and the connectability of any two SIRs, is evaluated. As a result of the optimisation, it is guaranteed that all SIR images can be connected theoretically. For 30 evaluation points, the maximum connection error of the SIR images was 1.5 nm in a simulation using pseudo-SEM images. The maximum total measurement error, which includes the connection error and CD measurement error from the panorama image, is estimated at 2.5 nm. This error was equivalent to about 1.4% of the photomask line width (target: 3%). The experiments using real SEM images demonstrate the effectiveness of the proposed method. It was visually confirmed that a large field, highresolution and seamless panorama image can be generated.