Noise thresholding made optional
Merge. I guess..
Added code to update histogram and compute pos probs for each pixel
Changing window size in hist estimation for speed up