1. A method, comprising: transferring a patterned structure into a microscope; acquiring a top-view image of the patterned structure by the microscope; transferring the patterned structure out of the microscope and exporting the top-view image to an image analysis processor; and measuring a difference between a contour of the top-view image and a predetermined layout of the patterned structure by the image analysis processor.