Hierarchical tree image segmentation