Teeth segmentation of bitewing X-ray images using wavelet transform