Taken from here(https://github.com/scikit-image/scikit-image/blob/master/skimage/filter/thresholding.py#L72)
Will remove the hard-coding now since we have different block-sizes for different scales.