Adaptive segmentation of magnetic resonance images with intensity inhomogeneity using level set method.