Brain MR Image Segmentation Using Multiphase Active Contours Based on Local and Global Fitted Images