Reconstruction of the brain surface from multiple images