Email zadetek: An algorithm for automatic segmentation and classification of magnetic resonance brain images