Is `convex_obj = convex_hull_image(labeled_im == (i - 1))` what the previous 3 lines are trying to do? I don't understand the need for the `not xor` operation and the mask.