mirror of
https://github.com/edoverg/modeconverter.git
synced 2026-10-14 23:06:39 +00:00
uniform filter with radius 1
This commit is contained in:
+2
-2
@@ -228,8 +228,8 @@ def conic_filter(phase_mask,radius,size_x,size_y,resolution):
|
||||
|
||||
X, Y = npa.meshgrid(xv, yv)
|
||||
|
||||
h = npa.where(X**2 + Y**2 < radius**2, (1 - np.sqrt(abs(X**2 + Y**2)) / radius),0)
|
||||
#h = npa.where(X**2 + Y**2 < radius**2, 1, 0)
|
||||
#h = npa.where(X**2 + Y**2 < radius**2, (1 - np.sqrt(abs(X**2 + Y**2)) / radius),0)
|
||||
h = npa.where(X**2 + Y**2 < radius**2, 1, 0)
|
||||
h = _quarter_to_full_kernel(h, 3 * np.array([Nx, Ny]))
|
||||
h = h / npa.sum(h)
|
||||
H = npa.fft.fft2(h)
|
||||
|
||||
Reference in New Issue
Block a user