3D reconstruction of the brain from magnetic resonance images using a connectivity algorithm.