Thresholding Function In Image Processing