The modulation transfer function (MTF) is an important parameter for performance evaluation of optical imaging systems in photogrammetry and remote sensing; the slanted-edge method is one of the main methods for measuring MTF. To solve the problem of inaccurate edge detection by traditional methods under the conditions of noise and blur, this paper proposes a new method of MTF measurement with a slanted-edge method based on improved Zernike moments, which firstly introduces the Otsu algorithm to automatically determine the Zernike moment threshold for sub-pixel edge detection to precisely locate the edge points, then obtains LSF through edge point projection, ESF sampling point acquisition, smoothing, fitting, taking ESF curve differential and Gaussian fitting, and finally, accurately obtaining MTF by LSF Fourier transform and modulo normalization. Based on simulation experiments and outdoor target experiments, the reliability of the proposed algorithm is verified by the deviations of slanted-edge angle and MTF measurement, and the tolerance degree of edge detection to noise and ambiguity are analyzed. The results show that compared with ISO 12233, OMNI-sine method, Hough transform method and LSD method, this algorithm has the highest edge detection accuracy, the maximum tolerance of noise and ambiguity, and also improves the accuracy of MTF measurement.