Segmentation and 3D reconstruction of the human brain