A computer-readable recording medium for storing a position detecting control program which is executed by a position detecting apparatus for detecting position information of a mark-formed on an object, wherein
- said position detecting control program comprises:
- allowing said mark to be observed;
- allowing a domain, which reflects said mark and in which a distribution of correlation coefficients obtained by a template matching method for an observation result of said mark using a predetermined template has a single peak, to be extracted from said observation result;
- allowing a positional relationship, in which said correlation coefficient is maximum in said domain, between said predetermined template and said observation result, to be obtained by using a hill climbing method;
- and
- allowing said position information of said mark to be detected based on said obtained positional relationship.