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

Incorrect STMap formula #14

Merged
merged 1 commit into from
Mar 14, 2024
Merged

Incorrect STMap formula #14

merged 1 commit into from
Mar 14, 2024

Conversation

rafaelperez
Copy link
Owner

Fix STMap formula causing a small discrepancy during the warping step.

The current formula:
stmap_x = x/(width-1)

The correct one is (it starts from the middle of the first pixel):
stmap_x = (x+0.5)/width

@rafaelperez rafaelperez linked an issue Mar 14, 2024 that may be closed by this pull request
@rafaelperez rafaelperez merged commit 9f244b4 into main Mar 14, 2024
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

Successfully merging this pull request may close these issues.

Incorrect STMAP formula
1 participant