added but not tested primary foreground for tree segmentation