An image segmentation framework for extracting tumors from breast magnetic resonance images