Open
Conversation
This reverts commit baeff85. Even with this flag, the transformation doesn't seem to be recognized during matching; try another approach
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.
This PR adds functionality for correcting stage creep effects in the wafer 60/61 multisem acquisition. The added code is divided into three parts.
Deriving parameters
Parameters for stage creep correction are derived on a per-mfov level: sfovs within an mfov that overlap vertically are aligned pairwise using an affine model. Parameters for this affine model are converted to a creep correction transformation. Only pre-existing matches are used and the correction parameters per mfov may optionally be stored in a csv file.
This step closely follows a python prototype by Ken.
Patching tile specs
A new stack is created with patched tile specs: tile specs that need to be corrected get an additional stage creep transform. Because there is a forward-backward mismatch between how the python prototype and render handle transformations, this transform needs to solve a non-linear equation at any point, which makes it a bit expensive to apply.
Patching matches
Instead of re-deriving point matches, matches are patched by applying the corresponding stage creep correction. A new match collection is created.
@trautmane let me know if this is enough to easily apply the correction to every slab. If not, I'm happy to modify the spark client to handle multi-stack configurations.
The process took about 30min for a full stack on my laptop on a single core, so it shouldn't be too compute intensive.