the fuction performs thresholding to the eye images. this function can be used in implementing daugman algo for iris localization.