Fully automatic anatomical, pathological and functional segmentation from CT scans for hepatic surgery