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

Image alignment #6

Open
hqhoang opened this issue Mar 16, 2023 · 2 comments
Open

Image alignment #6

hqhoang opened this issue Mar 16, 2023 · 2 comments

Comments

@hqhoang
Copy link
Contributor

hqhoang commented Mar 16, 2023

Added an initial version of ECC alignment algorithm. Not sure how you're planning on feeding the images for training so I'm not putting too much thought into its parameters yet. The default termination epsilon of 0.01 and 50 iterations seem to work fine. OpenEXR is still a pain due to security issues around it.

master...hqhoang:nind-denoise:align-images

@trougnouf
Copy link
Owner

Thank you! :) That looks much more useful than my current x-y-shift only alignment.

Not sure how you're planning on feeding the images for training

At first I was using the raw images as-is but it was excruciatingly slow, so I pre-cropped them and I am just saving them on disk as a 2048*2048 numpy arrays with some overlap then crop from there at load time. (I pre-compute the alignment between each image and its ground-truths and apply that at load time. Since there are multiple ground-truths I can't pre-align the crops). I use 16-bit OpenEXR files as the ground-truth images (down from 32-bit to save a lot of disk space).

@hqhoang
Copy link
Contributor Author

hqhoang commented Mar 28, 2023

Just an FYI, the focus-stack project also uses findTransformECC, but it's a lot faster as it's written in C++. It has the "--align-only" option:
https://github.com/PetteriAimonen/focus-stack/

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