Semi-automatic liver segmentation based on probabilistic models and anatomical constraints