def phase_corrected(self): """ Try to ammend the spherical wave front curvature. """ if self.phase_correct: print("Double phase correcting") phase = (self.phase - get_fitted_paraboloid(self.phase)) % tau phase = (phase - get_fitted_paraboloid(phase)) % tau wrapped, phase = align_phase(phase) return phase else: return self.phase
def get_partial_phase(max_value): mask = spectrum >= max_value masked = spectrum * mask phase = get_phase(get_shifted_idft(masked)) paraboloid = get_fitted_paraboloid(phase) phase -= paraboloid return paraboloid, phase % tau