Image thresholding based on the EM algorithm and the generalized Gaussian distribution