fixed a bug in the weighting scheme, normalizing only if sumweights > 1,
otherwise artifacts at the edges are significantly enhanced in some cases
Merge branch 'master' of github.com:fiji/fiji