A multiphase texture segmentation method based on local intensity distribution and Potts model