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

Modify warping tile priority #38

Open
ganctom opened this issue Jul 27, 2023 · 4 comments
Open

Modify warping tile priority #38

ganctom opened this issue Jul 27, 2023 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@ganctom
Copy link
Collaborator

ganctom commented Jul 27, 2023

There is inherent and frequent issue of distorted few first lines of every EM image (below top edge). So far, the warping algorithms, have been warping each stitched vertical tile-pair with bottom image overlaid over its top neighbor. In order to mask the distortion, a reversed warping priority should cover most of these distortion with image information from the top neighbor.

image

@ganctom ganctom assigned ganctom and tibuch and unassigned tibuch Jul 27, 2023
@ganctom ganctom added the enhancement New feature or request label Jul 27, 2023
@ganctom ganctom added this to the Selected for developement milestone Jul 27, 2023
@ganctom ganctom assigned tibuch and unassigned ganctom Jul 27, 2023
@tibuch
Copy link
Collaborator

tibuch commented Jul 28, 2023

How many rows are affected by this and to what value did you set the margin parameter? And how much is the tile-overlap?

@ganctom
Copy link
Collaborator Author

ganctom commented Jul 28, 2023

The distortion can cover up to 50 lines, depending on factors such as sample conductivity, electron dose, and cutting thickness. This phenomenon is not deterministic but significantly impacts data quality. Too much charging can lead to even larger distorted portions of the image.

Each section has an upper limit for the margin parameter. Depending on computed xy shifts, a too large margin will cause visible gaps (missing information) during tile stitching. Currently, margin is a scalar constant for the entire section.

Ideally, for each tile-pair, the margin should be as large as possible while still preventing gaps. The allowed margin value directly depends on the size of the shift vector (its vertical or horizontal components, to be more precise).

The tile-overlap is usually set to 200 pixels, but in reality, it can be as small as a few tens of pixels for complex sections.

@tibuch
Copy link
Collaborator

tibuch commented Aug 7, 2023

There is an option to provide margins for left, right, top and bottom of a tile. This parameter can be exposed.

I could not find an option to define which tile goes on top or bottom.

@ganctom
Copy link
Collaborator Author

ganctom commented Aug 7, 2023

Please, expose that parameter for testing purposes. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants