1. A method for segmenting image data, the method comprising: fitting a topological atlas to acquired image data; generating spatially varying priors based on the fitted topological atlas; and segmenting the acquired image data based on the spatially varying priors.