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

reduced multiplication cost in Gauss filtering #24

Merged
merged 2 commits into from
Apr 4, 2017
Merged

Conversation

griwodz
Copy link
Member

@griwodz griwodz commented Mar 23, 2017

Instead of using Gauss as (g1 x_1 + g2 x_2), we use (u x_1 + (1-u) x_2) v, where v=g1+g2 and u=g1/v
u is handled by linear interpolation of the texture engine, so we need only one multiplication.
Still not perfect, but this shifts the performance bottleneck and reduces the time in Gauss filtering by at least 20% for the first octaves.

- cudaArray for intermediate memory
- use texture engine to halve mult ops in Gauss filtering
@griwodz griwodz self-assigned this Mar 23, 2017
@griwodz griwodz merged commit 6f33298 into develop Apr 4, 2017
@griwodz griwodz deleted the relative-gauss branch April 4, 2017 11:58
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.

2 participants