To improve the quality of optical remote sensing images, this paper proposes an adaptive moving window moment matching method for non-uniformity correction of remote sensing images. First, the scene complexity of the remote sensing image to be corrected is calculated, and the range of the width of the moving window is determined accordingly; Subsequently, the local scene complexity of the image in the window centered on the column to be corrected is calculated, and the width of the moving window is controlled adaptively; the correction gain and offset values of the column to be corrected of the image in the moving window are then calculated, and the correction of the columns to be corrected is performed accordingly; finally, the whole remote sensing image is traversed, and moment matching correction is performed column by column, and the correction of the non-uniformity of the whole remote sensing image is completed. The experimental results show that the non-uniformity correction effect of this algorithm is better than other competing algorithms, and the mean value of non-uniformity coefficient of the corrected image is reduced by more than 0.1802% compared with the minimum value in other comparison algorithms, which effectively eliminates the streak and stripe noise in the image, and better preserves the detailed information of the image.