Skip to content

Simulations - Projection imaging#537

Open
mattersoflight wants to merge 14 commits into
mainfrom
projection-modeling
Open

Simulations - Projection imaging#537
mattersoflight wants to merge 14 commits into
mainfrom
projection-modeling

Conversation

@mattersoflight

@mattersoflight mattersoflight commented Mar 12, 2026

Copy link
Copy Markdown
Member

This is the first of 3 planned PRs for:

  1. Understanding the design space of projection imaging on LiveScreen.
  2. Benchmarking adaptive and blind deconvolution algorithms.

This PR contributes:

  • Forward simulations: projection imaging in phase and fluorescence contrasts.
  • Conjugate gradient inverse algorithm: that use conjugate OTF and back projection.

The next two PRs should address:

  • Space variant modeling and deconvolution.
  • "Single-shot" reconstruction for speed and Richardson-Lucy iterative reconstruction for accuracy.

In this PR:
Simulations are done with 1D object (0.5 um bead), 2D object (Biohub logo [o]), and 3D object (microscopic Shepp-Logan Phantom).

See the results of analysis in this report.

@talonchandler let's think about how to organize the simulations in the codebase. Does a simulations module exist? Please refactor while you test.

@mattersoflight mattersoflight changed the base branch from api-refactor to main March 12, 2026 19:01
mattersoflight and others added 4 commits March 12, 2026 12:02
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…o be examined

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@codecov

codecov Bot commented Mar 13, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0.49261% with 202 lines in your changes missing coverage. Please review.
✅ Project coverage is 51.83%. Comparing base (5384c90) to head (a97e3d4).
⚠️ Report is 18 commits behind head on main.

Files with missing lines Patch % Lines
waveorder/projection.py 0.00% 198 Missing ⚠️
waveorder/reconstruct.py 20.00% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #537      +/-   ##
==========================================
+ Coverage   46.59%   51.83%   +5.23%     
==========================================
  Files          51       62      +11     
  Lines       10460    10430      -30     
==========================================
+ Hits         4874     5406     +532     
+ Misses       5586     5024     -562     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@mattersoflight mattersoflight marked this pull request as ready for review March 13, 2026 16:38
mattersoflight and others added 4 commits March 20, 2026 07:19
Move the 5 CLI pipeline scripts (forward simulation, reconstruction,
sweeps, visualization) to waveorder-dev/projection_modeling/. Leave
behind a self-contained Jupytext demo that generates the [o] line
phantom, applies fluorescence and phase blur, projects at oblique
angles, and reconstructs via CG-Tikhonov.

Uses jupyter_visuals.plot_multicolumn for non-blocking visualization.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@mattersoflight

Copy link
Copy Markdown
Member Author

@talonchandler I've reorganized the code and tested. Ready for review and merging. The reports and pngs are moved to waveorder-dev - will push it later. This page has all results: https://czbiohub.atlassian.net/wiki/spaces/MUG/pages/5142315012/2026-03-13+LiveScreen+Projection+simulation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant