Text this: Hybrid and multilevel segmentation technique for medical images