Mid-sagittal plane detection for advanced physiological measurements in brain scans