Certain investigations of segmentation for brain tumour detection and diagnosis using magnetic resonance images