程序 模拟光斑 # 理想光斑模型 def Gaussian2D(sigma, miu_1, miu_2, x, y): z = (1 /sigma) * np.exp(-((x - miu_1) ** 2 + (y - miu_2) ** 2) / (sigma ** 2)) return z # 生成带有高斯噪声光斑模型 #创建光斑模型图片 def generate(img_shape, sigma, miu_1, miu_2,N): (width, height) = img_shape X = np.arange(0, width, 1) Y = ...