Automated classification of brain tissue