Registre de correu electrònic: An algorithm for automatic segmentation and classification of magnetic resonance brain images