for u in range1M for v in range1N D u vmath.sqrtu2v2RedH u v11math.sqrt21D u vredcut2红色滤波器为低通GreenH u v11math.sqrt21greencut D u v2绿色滤波器为高通BlueD u vmath.sqrtu blueu02v bluev02BlueH u v111BlueD u vbluewidth BlueD u v2bluecenter22BlueH u v11math.sqrt21bluecut D u v2蓝色滤波器为高通Red RedH fft Redcolor np.fft.ifft2Red Gree