A record medium that can be read by a computer which stores therein a program for measuring a fine pattern, the program comprising:
- a first step of capturing an image of a fine pattern;
- a second step of extracting a contour of the fine pattern from the image;
- a third step of capturing a standard figure of the fine pattern;
- a fourth step of superimposing the standard figure on the contour by enlarging or reducing the standard figure while maintaining an aspect ratio thereof in order to fit the standard figure into the contour;
- a fifth step of extracting an intersection of the contour and the standard figure;
- a sixth step of extracting a differential region surrounded by the contour, the standard figure and the intersection;
- a seventh step of extracting a correction pattern region from the differential region, comprising:
- a process for indicating the differential region in a polar coordinate;
- a process for preparing a weighting function having a weight in an existence range of a correction pattern;
- a process for multiplying the differential region by the weighting function;
- and
- a process for extracting as the correction pattern region the differential region after it is multiplied by the weighting function;
- and
- an eighth step of measuring the correction pattern region.