-
Notifications
You must be signed in to change notification settings - Fork 10
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
window function normalization #6
Comments
Hi @renerichter ! Great to see the interest! Unfortunately I still haven't implemented automatic calculation of window sizes and overlap to get constant 1.0 "weight" in Merger. It is in the roadmap and I have to admit it has been there for too long! For now, you have to calculate "correct" sizes yourself and/or apply padding like in the You could divide the merged data by the number of times each element has been seen in tiles. This would work properly only for boxcar (constant) window: Hope that helps! |
I added #7 and would like to discuss the merging strategy. Test Code
The results are: Resulting Images:Weights used for reweighting:Comparison between Reference and re-merged images
For the reweighting I interpreted the calculation steps to be like if one would calculate a center-of-mass kind of thing. Hence,
could reproduce the wanted normalization of the output. On the other hand, if the window-functions are normed and symmetric than the final division by the weights would just undo the prior weighting of the tiles. Hence I believe I have a thinking error somehow here. What do you think? PS: Flat-top normalization needs to be fixed... |
Merged #7. |
Hiho,
thank you for this awesome project. I played a bit around with it and tried all tiling and windowing options, but it seems to me that in the stitched image the windowing functions do not sum up to 1 (=100%), but to 0. I tested it with the following code:
which results in
where the last image is the original (to-be-tiled and merged) image and the others are the different merges from all possible merging options.
What am I doing wrong here?
The text was updated successfully, but these errors were encountered: