An embodiment disclosed relates to a variable threshold method of
accurately determining a critical dimension (CD) of an integrated circuit
feature. This method can include applying a scanning electron microscope
(SEM) to an aperture in a layer of material in a portion of an integrated
circuit, obtaining a first measurement of a critical dimension of the
aperture, applying the SEM again to the aperture, obtaining a second
measurement of the critical dimension of the aperture; and determining a
depth of focus margin using the first measurement and the second
measurement.