Refactor compound_segment to try different segmentation masks Change-Id: I7c992c9aae895aebcfb5c147cb179cf665c0ac10