A priori information in image segmentation: energy functional based on shape statistical model and image information