Segmentation of anatomical structures by connected statistical models