noise profile: cleanup and more principled edge weight in wavelet code
noise profile: same for opencl version.