A method for reference image contour generation includes generating a mask pattern based on design target information, generating a reference image based on a simulation of photolithographic effects on the mask pattern, generating a reference image contour pattern based on edge detection in the reference image, and generating a scanned image contour pattern as a function of the reference image contour pattern and a scanned image of an integrated circuit.