Skip to content

Commit

Permalink
fix axial nyquist bug
Browse files Browse the repository at this point in the history
  • Loading branch information
talonchandler committed Sep 10, 2024
1 parent 783b916 commit 55f8e5a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions waveorder/sampling.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,11 @@ def axial_nyquist(
):
"""Axial Nyquist sample spacing in `wavelength_emission` units.
For widefield microscopes, the axial Nyquist sample spacing is:
For widefield microscopes, the axial Nyquist cutoff frequency is:
(n/lambda) - sqrt( (n/lambda)^2 - (NA_det/lambda)^2 ).
(n/lambda) - sqrt( (n/lambda)^2 - (NA_det/lambda)^2 ),
and the axial Nyquist sample spacing is 1 / (2 * cutoff_frequency).
Perhaps surprisingly, the axial Nyquist sample spacing is independent of
the illumination numerical aperture.
Expand All @@ -63,10 +65,11 @@ def axial_nyquist(
"""
n_on_lambda = index_of_refraction_media / wavelength_emission
return n_on_lambda - np.sqrt(
cutoff_frequency = n_on_lambda - np.sqrt(
n_on_lambda**2
- (numerical_aperture_detection / wavelength_emission) ** 2
)
return 1 / (2 * cutoff_frequency)


def nd_fourier_central_cuboid(source, target_shape):
Expand Down

0 comments on commit 55f8e5a

Please sign in to comment.