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

Are you going to implement cross correlation based global alignment? #65

Open
r3fang opened this issue May 22, 2020 · 3 comments
Open

Comments

@r3fang
Copy link

r3fang commented May 22, 2020

class GlobalAlignment(analysistask.AnalysisTask):

@emanuega
Copy link
Owner

This would be a nice feature to have to stitch the images better. I haven't worked on it much lately but could contribute if you want to start a pull request.

@r3fang
Copy link
Author

r3fang commented May 22, 2020

I have some thoughts and questions, but would like hear how you would implement this.

Here are my thoughts:
Give any FOV f_i, using the beads image of the reference data channel (0), I can calculate the transformation between its four adjacent FOVs (let's say i1, i2, i3 , i4) based on the overlapping area assuming this FOV is not at the edge. Then this can be done for any FOV. The question is how would you stitch them after calculating the transformation?

@emanuega
Copy link
Owner

Yes, I consider what you describe to be the first step. From the estimated transformations between the four adjacent fields of view, you would need a way to determine a single transformation for each field of view. For example, if the overlap between the field of view and one of the adjacent fields of view contains no beads, it is possible that the calculated transformation is lower accuracy than for overlaps with more beads. Not all measured transformations can be perfectly satisfied. In some sense it is an optimization problem to find the best offset for each field of view that best aligns it with all adjacent fields of view.

I would then likely do the stitching by determining a rectangle to crop each field of view so that there is no overlap between adjacent fields of view.

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

No branches or pull requests

2 participants