You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: