LocalMean (threshold method) fixed.