Semantic Image Segmentation Using Domain Constraints