Repository navigation
Add a simulated Shutter device - #8
Merged
Merged
Conversation
Might be nice to know about the error state
Contributor
Author
|
Closes #5 |
Owner
|
(Resolving conflicts.) |
Resolve conflicts with objective turret and reformatting on 'main'. Also reformatted code. (Assisted by Claude Code; any errors are mine.)
Put the shot noise together with the read noise/dark offset. Specimen.h is now the pure expected photon count image. Also dropped the template parameter T (= uint16_t) as it is constant for now. Benchmark rendering and noise separately. (Assisted by Claude Code; any errors are mine.)
Require enumerating through hub only. (Assisted by Claude Code; any errors are mine.)
Zero SD is not allowed by std::normal_distribution. (Assisted by Claude Code; any errors are mine.)
Consistent with others. (Assisted by Claude Code; any errors are mine.)
Standard for shutters. (Assisted by Claude Code; any errors are mine.)
(Assisted by Claude Code; any errors are mine.)
(for std::plus<>) (Assisted by Claude Code; any errors are mine.)
Owner
|
@gselzer Can you give this a quick test to make sure I didn't break any intended behavior? |
Contributor
Author
|
@marktsuchida seems to work well for me! |
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.
The shutter device itself is quite simple. When the shutter is closed, a "dark image" is drawn, with just gaussian noise and a dark offset. The "dark image" itself is not really a specimen property, so I've moved the code that was performing this behavior into
SimCam(this does mean thatSimulatedSpecimen.Drawshould respect the values already present within the passedbuffer- is that problematic?)