Create binary segmentation images based on object flags

Thank you for the reply~ I had and I got this now. I can’t see any segmentation thing.