Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrap-safe transfer functions #175

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

talonchandler
Copy link
Collaborator

@talonchandler talonchandler commented Sep 10, 2024

Fixes #152. Fixes #172.

This PR implements wrap-safe transfer functions. After this PR, undersampled data will not create wrapped transfer functions, which should address many of the reconstruction artifacts we've seen.

Before (e.g. phase transfer function with transverse and axial wrapping):
Screenshot 2024-09-09 at 8 10 36 PM

After:
Screenshot 2024-09-09 at 8 11 14 PM

A prerequisite for this PR is a clear set of transverse and axial Nyquist sampling rates.

This PR redefines the calculate_transfer_function call so it should Just Work (™). The old calls have been renamed to _calculate_wrap_unsafe_transfer_function. Better naming suggestions are welcome.

This PR implements these fixes for all of the transfer functions in the main branch:

  • Widefield fluorescence
  • 3D phase
  • 2D phase

Similar behavior for vector-optics transfer functions will follow in the vector-prototype branch.

Testing status I'm passing automated tests, and I've tested all of the example scripts with undersampled parameters to check for wrapping. @ziw-liu I would appreciate your help with testing on real data because your use cases helped us spot these artifacts.

@talonchandler talonchandler linked an issue Sep 10, 2024 that may be closed by this pull request
@talonchandler talonchandler marked this pull request as ready for review September 10, 2024 03:36
@ziw-liu ziw-liu added the enhancement New feature or request label Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Severe artifacts and blur in 2D phase reconstruction [Bug] Overlapping rings in phase transfer function
2 participants