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

denoisingadv_6_nl_means.ipynb missing brackets #56

Open
Alienor134 opened this issue Jan 11, 2019 · 0 comments
Open

denoisingadv_6_nl_means.ipynb missing brackets #56

Alienor134 opened this issue Jan 11, 2019 · 0 comments

Comments

@Alienor134
Copy link

denoisingadv_6_nl_means:
It seems brackets are missing to normalise the distance by the patch area according to the distance matrix definition:
In the function distance_0 (section "Localizing the Non-local Means")
return np.sum((H2 - np.tile(H[i[0],i[1],:],(len(sel[0]),len(sel[1]),1)))**2,2)/w1*w1
should be
return np.sum((H2 - np.tile(H[i[0],i[1],:],(len(sel[0]),len(sel[1]),1)))**2,2)/(w1*w1)

to get a weight map similar to the section above

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