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

Width normalizer in cost volume fusion #20

Open
zhouxf53 opened this issue Mar 16, 2022 · 0 comments
Open

Width normalizer in cost volume fusion #20

zhouxf53 opened this issue Mar 16, 2022 · 0 comments

Comments

@zhouxf53
Copy link

zhouxf53 commented Mar 16, 2022

width_normalizer = width / 2.0

I think it is supposed to be

width_normalizer = (width  - 1) / 2.0
height_normalizer = (height - 1) / 2.0

The reason of that is to map x from [0, width-1] to [-1, 1] to grid sampling instead of map [0, width] to [-1, 1]

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

1 participant