A level set method is proposed for image segmentation and bias correction. The bias field is simulated by linearly combining a given set of basis functions. The proposed method is able to segment images with intensity inhomogeneity. The proposed method is also able to correct the bias field from the image. Experiments demonstrate that our method is also robust to noise and initialization.