bug fix: w1[0] uninitialized in otsu