Since hippocampal volume has been found to be an early biomarker for Alzheimer's disease, there is large interest in automated methods to accurately, robustly, and reproducibly extract the hippocampus from MRI data. In this work we present a segmentation method based on the minimization of an energy functional with intensity and prior terms, which are derived from manually labelled training images. The intensity energy is based on a statistical intensity model that is learned from the training images. The prior energy consists of a spatial and regularity term. The spatial prior is obtained from a probabilistic atlas created by registering the training images to the unlabelled target image, and deforming and averaging the training labels. The regularity prior energy encourages smooth segmentations. The resulting energy functional is globally minimized using graph cuts. The method was evaluated using image data from a population-based study on diseases among the elderly. Two set of images were used: a small set of 20 manually labelled MR images and a larger set of 498 images, for which manual volume measurements were available, but no segmentations. This data was previously used in a volumetry study that found significant associations between hippocampal volume and cognitive decline and incidence of dementia. Cross-validation experiments with the labelled set showed similarity indices of 0.852 and 0.864 and mean surface distances of 0.40 and 0.36 mm for the left and right hippocampus. 83% of the automated segmentations of the large set were rated as ‘good' by a trained observer. Also, the proposed method was used to repeat the manual hippocampal volumetry study. The automatically obtained hippocampal volumes showed significant associations with cognitive decline and dementia, similar to the manually measured volumes. Finally, direct quantitative and qualitative comparisons showed that the proposed method outperforms a multi-atlas based segmentation method.