Image thresholding using restricted equivalence functions and maximizing the measures of similarity.pdf