Text this: An adaptive thresholding method for segmenting dental X-ray images