Segmentation techniques for the classification of brain tissue using magnetic resonance imaging