End-to-End Deep Learning for Structural Brain Imaging: A Unified Framework