The proposed brain tumor detection and localization framework comprises following steps: (i) Image acquisition, (ii) Preprocessing, (iii) Edge detection, (iv) Morphological operations. After thresholding operations, tumors appear as pure white color on pure black backgrounds. The algorithm has two stages, first is pre-processing of given MRI image and after that segmentation is done. - Image acquisition (gathering of MRI scanned images). - Images stored in MATLAB in form of 2-D matrix. - Preprocessing is done (i) Image acquisition (gathering of MRI scanned images). (ii) Edge detection through median filtering. (iii) Image dilation - Processing stage It includes analysis on 2-D image through MATLAB commands,extraction of tumor portion is done with the help of segmentation methods.