Repository navigation
Add a hologram simulator for testing reconstruction settings - #449
Closed
animmosmith wants to merge 4 commits into
Closed
animmosmith wants to merge 4 commits into
animmosmith wants to merge 4 commits into
Conversation
pyopia.simulator.holo simulates in-line holograms of opaque disks at known position, depth and size with the band-limited angular spectrum method. It can write a folder of holograms with their true particles, and match processed statistics back to them. Adds tests and a docs entry.
animmosmith
marked this pull request as draft
October 15, 2026 20:55
Processed stats restart their index for each image, so claiming detections by index label blocked matches in other images. Reset the index first, and add a test with repeated labels.
… synthetic_hologram The scattered field was propagated with the full carrier phase while the incident plane wave was not, so the interference term had an arbitrary phase that changed with distance. The transfer function is now relative to a normally incident plane wave. Adds a test that the shadow behind an opaque disk is dark at any distance, and corrects the expected mean level.
1 task done
Collaborator
Author
|
Superseded by #452, which includes the simulator and its fixes (as a single commit) together with the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Features
pyopia.simulator.holosimulates an in-line hologram of opaque disks at known x, y, depth and size (synthetic_hologram), with a helper for random test particle sets (random_particles), a writer for a folder of simulated holograms plus their true particles (write_synthetic_holograms), and a function that matches processed statistics to the truth (match_to_truth). Six fast tests (52c18eb). Refs Consider tests with synthetic data and statistical size distributions #199Housekeeping
match_to_truthworks on processed stats, whose index labels repeat across images (b31998e)synthetic_hologramnow propagates the scattered field with the correct phase relative to the incident wave, so the shadow behind an opaque particle is dark at any distance (cbde9bd)Checks