A method for correcting an error of the imaging system of a coordinate
measuring machine is disclosed. The position of at least two different
edges of at least one structure on a substrate is measured. The substrate
may be automatically rotated into another orientation. Then the position
of the at least two different edges of the at least one structure is
measured on the rotated substrate. Based on the measurement data, a
systematic error of the imaging system is eliminated.