Geometric Image Labeling with Global Convex Labeling Constraints