A new thresholding technique based on random sets